Basic calculation problem

sir i tried every way but i always getting test case faliure

hi pankaj
share your code

code link is in discription also

U have to do it multiple time under the while loop u r taking only one time
That is
U have to run the infinite loop and take the input until the x or X come
U r doing this only 1 time
Read question one more time…

sir now i have corrected the code according to your suggestion but now iam not able to submit the code when iam trying to submit the code nothing happening,but when iam trying the custom output all thing are perfect

https://ide.codingblocks.com/s/156833 sir this is code link

Ur programe getting into infinite loop due to while loop u started in line 34

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.