Cod sursa(job #219166)
Utilizator | Data | 5 noiembrie 2008 21:19:10 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.36 kb |
#include <cstdlib>
#include <iostream>
#include <fstream>
ifstream f("adunare.in");
ofstream g("adunare.out");
using namespace std;
int main(int argc, char *argv[])
{
int a,b;
f>>a;
f>>b;
g<<a+b<<endl;
f.close();
g.close();
system("PAUSE");
return EXIT_SUCCESS;
}