Cod sursa(job #953573)
Utilizator | Data | 26 mai 2013 17:17:47 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.19 kb |
#include <fstream>
using namespace std;
int a,b;
fstream f("adunare.in",fstream::in);
int main()
{
f>>a>>b;
f.close();
f.open("adunare.out",fstream::out);
f<<a+b<<'\n';
f.close();
}