Cod sursa(job #750974)
Utilizator | Data | 23 mai 2012 19:29:50 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <fstream>
using namespace std;
int main()
{
long a, b, suma;
ifstream f("adunare.in");
f>>a;
f>>b;
f.close();
suma = a+b;
ofstream g("adunare.out");
g<<suma;
g.close();
return 0;
}