Cod sursa(job #400831)
Utilizator | Data | 22 februarie 2010 00:36:13 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
int a,b;
long s=0;
ifstream f;
ofstream g;
f.open("adunare.in");
g.open("adunare.out");
f>>a>>b;
s=a+b;
g<<s;
f.close();
g.close();
return 0;
}