Cod sursa(job #67449)
Utilizator | Data | 24 iunie 2007 21:14:05 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <iostream.h>
#include <fstream.h>
int main(void)
{
fstream f1("adunare.in",ios::in);
fstream f2("adunare.out",ios::out);
long a = 0;
long b = 0;
f1 >> a;
f1 >> b;
f2 << (a + b);
f1.close();
f2.close();
return 0;
}