Basic calculator

four test cases are going wrong ??what is the problem

Hello @amishakumari,

  1. You are not following the costraints:
    0 <= Input integers <= 100000000
    ( It is assured that the second integer provided for division and modulo operations will not be 0. )
    a and b should be of type long

  2. Missing cout<<endl; in default case.

  3. You have written wrong output statement for default case:
    Required: Invalid operation. Try again.
    Yours: Invalid operation .Try again
    Problem:
    Position of fullstop ‘.’ and missing fullstop

  4. Wrong condition inside while

I have corrected your code:

Hope, this would help.
Give a like if you are satisfied.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.