Cod sursa(job #34551)
Utilizator | Data | 20 martie 2007 21:16:41 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <fstream.h>
#include <iostream.h>
int main(){
long a, b, suma;
ifstream f("adunare.in");
f>>a;
f>>b;
f.close();
suma = a+b;
ofstream g("adunare.out");
f<<suma;
g.close();
return 0;
}