Cod sursa(job #1830622)
Utilizator | Data | 16 decembrie 2016 22:33:23 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include<iostream>
#include<fstream>
using namespace std;
ifstream f("adunare.in");
ofstream g("adunare.out");
int a, b, sum;
int main()
{
while(!f.eof())
{
f>>a;
f>>b;
}
f.close();
sum=a+b;
g<<sum;
g.close();
return 0;
}