Cod sursa(job #198392)
Utilizator | Data | 11 iulie 2008 08:30:12 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <fstream.h>
int main(int argc, char** argv)
{
fstream f ("adunare.in", ios::in);
fstream g ("adunare.out", ios::out);
int a, b;
f.open();
f>>a;
f>>b;
int c=a+b;
g<<c;
f.close();
g.close();
return 0;
}