Cod sursa(job #16910)
Utilizator | Data | 14 februarie 2007 15:14:29 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.19 kb |
#include <iostream.h>
#include <fstream.h>
long a, b, s;
void main()
{
ifstream f("adunare.in");
f>>a;
f>>b;
s=a+b;
ofstream g("adunare.out");
g<<s<<endl;
f.close();
g.close();
}