Cod sursa(job #258307)
Utilizator | Data | 14 februarie 2009 22:58:14 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include<iostream.h>
#include<fstream.h>
int main ()
{
int a,b,s;
s=0;
fstream f("adunare.in", ios::in);
f>>a ;
fstream g("adunare.out", ios::out);
f>>b ;
s=a+b;
g<<s;
f.close();
g.close();
return 0;
}