Cod sursa(job #615894)
Utilizator | Data | 11 octombrie 2011 09:49:03 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
int a,b;
ifstream f("adunare.in");
{cout<<"a=";
f>>a;
cout<<"b=";
f>>b;
}
cout<<"suma este";
ofstream h("adunare.out");
h<<(a+b);
}