Cod sursa(job #52112)
Utilizator | Data | 17 aprilie 2007 20:32:02 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.18 kb |
#include <fstream>
std::ifstream f1("adunare.in");
std::ofstream f2("adunare.out");
long a, b, c;
int main()
{
f1>>a;
f1>>b;
c=a+b;
f2<<c;
f1.close();
f2.close();
return 0;
}