Cod sursa(job #1492340)
Utilizator | Data | 27 septembrie 2015 16:37:32 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int a,b,suma;
ifstream f ("adunare.in");
ofstream g ("adunare.out");
f>>a;
cout<<a<<endl;
f>>b;
cout<<b<<endl;
suma=a+b;
cout<<suma<<endl;
g<<suma;
f.close();
g.close();
return 0;
}