Basic calculator

I wrote the code but it didn’t work then I gave the custom input and it worked. I don’t know what is the problem I even unlocked the editorial but it didn’t help because i have followed the same approach

Hello @soul_coder

The || in “while((h!=‘x’)||(h!=‘X’))” should be && “while((h!=‘x’)&&(h!=‘X’))”

Yaa It just worked… Thank you for your help!!

Please tell what’s your doubt?

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.