Cod sursa(job #1437899)
Utilizator | Data | 18 mai 2015 19:45:23 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
#include <iostream> //biblioteca normala
#include <fstream> //biblioteca pentru fisiere
using namespace std;
ifstream f("adunare.in");
ofstream g("adunare.out");
int main ()
{ long int a,b, sum=0;
f>>a>>b;
sum=a+b;
g<<sum;
f.close ();
g.close ();
return 1;
}