Cod sursa(job #1147409)
Utilizator | Data | 19 martie 2014 20:08:13 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include<iostream>
#include<fstream>
std:: ifstream f("adunare.in");
std:: ofstream g("adunare.out");
int main()
{
int a, b, suma=0;
f>>a;
f>>b;
suma=a+b;
g<<suma;
std:: cout<< "Suma numerelor este"<<suma;
f.close();
g.close();
return 0;
getchar();
}