Cod sursa(job #1190543)
Utilizator | Data | 25 mai 2014 14:26:20 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | itmarathon | Marime | 0.32 kb |
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
int a,b,c;
ifstream f("adunare.in");
//f.open("adunare.in", ifstream::in);
ofstream g("adunare.out");
//g.open("adunare.out", ofstream::out);
f>>a;
f>>b;
c=a+b;
g<<c;
f.close();
g.close();
return 0;
}