Cod sursa(job #278949)
Utilizator | Data | 12 martie 2009 17:01:16 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.18 kb |
#include<fstream.h>
void main()
{ int a, b;
long s=0;
ifstream f("adunare.in");
ofstream g("adunare.out");
f>>a>>b;
s=a+b;
g<<s;
f.close();
g.close();
}