Cod sursa(job #1070491)
Utilizator | Data | 1 ianuarie 2014 13:09:03 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
// cout << "Hello world!" << endl;
fstream f1("adunare.in",ios::in);
fstream f2("adunare.out",ios::out);
int a, b, s;
f1>>a; f1>>b; s=a+b;
f2<<s;
f1.close();
f2.close();
return 0;
}