Cod sursa(job #397224)
Utilizator | Data | 16 februarie 2010 17:52:34 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include<iostream>
#include<fstream>
using namespace std;
int main(){
int a,b;
fstream f("adunare.in",ios::in);
fstream g("adunare.out",ios::out);
f>>a;f>>b;a=a+b;g<<a;
f.close();
g.close();
return 0;
}