Cod sursa(job #2252438)
Utilizator | Data | 2 octombrie 2018 19:08:53 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | marpmi_2018 | Marime | 0.3 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f;
ofstream g;
int main()
{
int a, b, c;
f.open("adunare.in.txt");
g.open("adunare.out.txt");
f >> a;
f >> b;
c = a + b;
g << c;
f.close();
g.close();
return 0;
}