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