Cod sursa(job #24840)
Utilizator | Data | 3 martie 2007 18:48:24 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <iostream.h>
#include <fstream.h>
void main ()
{
long int a,b,sum;
ifstream f("adunare.in");
ofstream g("adunare.out");
f>>a;
f>>b;
sum=a+b;
g<<sum;
f.close();
g.close();
}