Code is right but it shows TLE

code is right and i tried this problem 6 times but sometime i get 2 test cases passed and sometime 3 .Please explain

@mayurjhode55
See your code is not working even for sample testcase. This is because your code needs a and b as input even if your ch is invalid. So comment out line 8 and take cin>>a>>b inside each if condition.
Also when ch is invalid, You have to print “Invalid operation. Try again.” you have missed a space after full stop. Check it

@mayurjhode55
As I can see you got 100 points. Please mark this doubt as resolved. thanks

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.