I didn't understand the question

can you elaborate the question

We have a program which is like a simple calculator, ie. it performs the all the tasks of a calculator.

It takes an input and we have 3 possible cases-

  1. If input character is any operator ie ‘+’, ‘-’, ‘*’, ‘/’ or ‘%’, then we need to take 2 numbers inputs and perform the operation on them and display the result.

  2. If input character is ‘x’ or ‘X’ we need to terminate the program. (We need to keep taking inputs until this case is encountered).

  3. If input character is any other character then we need to display the message. 'Invalid operation. Try again.'

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.

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.