Calculator error teat case not pass please correct my code

@tyagikeshav30
there are few mistakes in your code. I am pointing out those mistake

  1. condition of do while loop should be while(ch!=‘x’ && ch!=‘X’)
  2. print cout<<endl; after every output. You missed it.
  3. write cin>>ch just before while condition of do while() loop i.e just before line 38 and first cin>>ch outside do while() loop

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.