Basic-calculator problem

https://ide.codingblocks.com/s/57112
i am getting invalid operation infinite no of times in output what is wrong in the code?

Hey Kiran, you haven’t checked if you are getting a valid operator in input or not, put an if check for this and take the two numbers in input only when you get a valid operator in input.