Cod sursa(job #883235)
Utilizator | Teodor Sz teodor98 | Data | 19 februarie 2013 20:58:53 |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
long a,b;
fstream f;
f.open("adunare.in", fstream::in);
f >>a;
f>>b;
f.close();
f.open("adunare.out", fstream::out);
f << a+b;
return 0;
}