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