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