Cod sursa(job #875191)
Utilizator | Data | 9 februarie 2013 19:50:26 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
int a,b,c;
fstream f, g;
f.open("adunare.in", ios::in);
g.open("adunare.out", ios::out);
f>>a>>b;
c=a+b;
g<<c;
g.close();
f.close();
}