Cod sursa(job #17947)
Utilizator | Data | 17 februarie 2007 15:22:54 | |
---|---|---|---|
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()
{
int a,b;
ifstream f;
f.open("adunare.in");
f>>a;
f>>b;
f.close();
ofstream g;
g.open("adunare.out");
int s=a+b;
g<<s;
g.close();
}