Cod sursa(job #536159)
Utilizator | Data | 18 februarie 2011 12:34:35 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Lista lui wefgef | Marime | 0.24 kb |
#include<iostream>
#include<fstream>
using namespace std;
int main(){
int s,a,b;
ifstream f("adunare.in");
ofstream g("adunare.out");
f>>a;
f>>b;
s=a+b;
g<<s<<" ";
g<<endl;
g<<"suma a+b="<<s;
g.close();
f.close();
}