Cod sursa(job #358237)

Utilizator cristi_430asd qwdqwd cristi_430 Data 22 octombrie 2009 14:13:24
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.24 kb
#include<fstream.h>
#define endl '\n'

int main(){

ifstream fin("adunare.in");
ofstream fout("adunare.out");

int a,b,r;

fin>>a>>b;

r=a+b;
fout<<r<<endl;

r=a-b;
fout<<r<<endl;

r=a*b;
fout<<r<<endl;

return 0;

}