Cod sursa(job #248232)
Utilizator | Data | 25 ianuarie 2009 11:38:12 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <iostream.h>
#include <fstream.h>
fstream f("a+b.in",ios::in);
fstream g("a+b.out",ios::out);
int main ()
{
int a,b,s;
f>>a; f>>b;
s=a+b;
g<<s;
f.close ();
g.close ();
return 0;
}