Cod sursa(job #343980)
Utilizator | Data | 28 august 2009 00:28:39 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <fstream>
#include <iostream>
using namespace std;
int main () {
fstream fin, fout;
int a, b;
fin.open ("adunare.in", fstream::in );
fout.open ("adunare.out", fstream::out);
fin >> a;
fin >> b;
fout << a+b << endl;
fin.close();
fout.close();
return 0;
}