Cod sursa(job #864663)
| Utilizator | Data | 25 ianuarie 2013 16:34:27 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | teme_upb | Marime | 0.42 kb |
#include <iostream>
using namespace std;
int main()
{unsigned int a,b,S,P,R;
cout<<"a="<< a ;
cin>>a;
cout<<"b="<< b ;
cin>>b;
S=a+b;
cout<<"suma este "<< S <<" ";
P=a*b;
cout<<"produsul este "<< P << " ";
R=a%b;
cout<<"restul este "<< R << " ";
if(a>b)
cout<<" a este mai mare decat b ";
else
cout<<"a este mai mic decat b";
return 0;
}
