Cod sursa(job #1367005)
Utilizator | Data | 1 martie 2015 15:40:41 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream f;
ofstream g;
int main( )
{
int a,b,s;
f.open("adunare.in");
f >> a;
f >> b;
f.close();
g.open("adunare.out");
s=a+b;
g << s;
g.close();
return 0;
}