Cod sursa(job #42460)
Utilizator | Data | 29 martie 2007 10:46:19 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include<iostream.h>
#include<fstream.h>
main()
{
long int a,b,s;
fstream f1("adunare.in",ios::in);
fstream f2("adunare.out",ios::out);
f1 >>a;
f1 >>b;
s=a+b;
f2 <<s;
}