Cod sursa(job #469369)
Utilizator | Data | 7 iulie 2010 17:48:47 | |
---|---|---|---|
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;
ifstream f;
ofstream g;
f.open("adunare.in");
g.open("adunare.out");
f>>a>>b;
if( f.is_open() )
g<<a+b;
f.close();
g.close();
return 0;
}