Cod sursa(job #33155)
Utilizator | Data | 18 martie 2007 22:53:27 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 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");
g<<suma;
g.close();
return 0;
}