Cod sursa(job #308852)
Utilizator | Data | 28 aprilie 2009 19:21:33 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | tot | Marime | 0.24 kb |
#include <fstream.h>
int a,b;
void citire(){
ifstream fi("adunare.in");
fi>>a;
fi>>b;
fi.close();
}
void afisare(){
ofstream fo("adunare.out");
fo<<a+b;
fo.close();
}
int main(){
citire();
afisare();
return 0;
}