Cod sursa(job #750973)
Utilizator | Data | 23 mai 2012 19:27:46 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include <fstream>
using namespace std;
int main()
{
int a, b, s;
ifstream f("intrare.txt");
f >> a >> b;
f.close();
s = a + b;
ofstream g("iesire.txt");
g << s;
g.close();
return 0;
}