Cod sursa(job #879299)
Utilizator | Data | 15 februarie 2013 10:58:12 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.19 kb |
#include<iostream.h>
#include<fstream.h>
int a,b,s;
int main()
{
ifstream f1("adunare.in");
f1>>a;
f1>>b;
s=a+b;
ofstream f2("adunare.out");
f2<<s;
f2.close();
f1.close();
}