Cod sursa(job #124632)
Utilizator | Data | 19 ianuarie 2008 18:03:20 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include<fstream.h>
#include<iostream.h>
int main()
{
int a,b,s;
fstream q("a+b.in", ios::in);
fstream z("a+b.out", ios::out);
q>>a;
q>>b;
s=a+b;
z<<s;
q.close();
z.close();
return 0;
}