Cod sursa(job #897805)
Utilizator | Data | 27 februarie 2013 22:20:02 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include<iostream.h>
#include<fstream.h>
int main()
{
int a, b;
fstream f("adunare.in", ios::in);
fstream g("adunare.out", ios::out);
while(!f.eof)
{
a>>f;
b>>f;
}
g<<a+b;
f.close();
g.close();
}