Basic Calculator

This is the link for my code.
Please check this code and help me to find out the mistake in this code to pass the all test cases.

You code will take only one input. You have to take inputs until X or x is entered by the user.For that you must use a loop…within that loop must be the switch case conditions. As soon as the user enters X or x…you loop must break.

Please share the code.

Refer this.

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.