Cod sursa(job #1190499)
Utilizator | Data | 25 mai 2014 14:02:40 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | itmarathon | Marime | 0.31 kb |
#include <iostream>
#include<fstream>
using namespace std;
int main()
{
long a, b, s;
ifstream f;
f.open("adunare.in.txt", ifstream::in);
f>>a>>b;
f.close();
s=a+b;
ofstream g;
g.open("adunare.out.txt",ofstream::out);
g<<s;
g.close();
return 0;
}