Cod sursa(job #147064)
| Utilizator | Data | 2 martie 2008 15:51:30 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.15 kb |
#include <fstream.h>
void main()
{
long a,b;
ifstream f("adunare.in");
ofstream g("adunare.out");
while (f>>a>>b)
{
f>>a;
f>>b;
}
g<<(a+b);
}
