Cod sursa(job #583398)
Utilizator | Data | 19 aprilie 2011 22:01:42 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <fstream.h>
long int a,b;
int main()
{
b=0;
ifstream f("adunare.in");
f >> a;
b=b+a;
f >> a;
b=b+a;
f.close();
ofstream g("adunare.out");
g << b;
g.close();
}