Cod sursa(job #132853)
| Utilizator | Data | 6 februarie 2008 19:44:27 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.16 kb |
#include<fstream.h>
void main()
{ifstream i("adunare.in");
ofstream o("adunare.out");
int a,b;
while (!i.eof())
{i>>a>>b;
o<<(a+b)<<endl;}
}
