Witam,
mam problem z zadaniem z kalkulatorem, teoretycznie wszystko dziala jak nalezy, ale sedzia nie akceptuje rozwiazania.
Polecenie: https://pl.spoj.com/problems/CALC/
Moj kod:
#include
using namespace std;
int a,b,c,d,e,f,g,h,i,j;
int main()
{
cout <<"+ “;
cin >>a>>b;
cout <<”- “;
cin >>c>>d;
cout <<”* “;
cin >>e>>f;
cout <<”/ “;
cin >>g>>h;
cout <<”% ";
cin >>i>>j;
cout <<a+b<<endl;
cout <<c-d<<endl;
cout <<e*f<<endl;
cout <<g/h<<endl;
cout <<i%j;
return 0;
}
Moge liczyc na jakies sugestie?
Pozdrawiam