Basic-Calculator :

Question: https://hack.codingblocks.com/contests/c/509/195
solution : https://ide.codingblocks.com/#/s/25295
cant pass 3 test cases and cant find the mistake

You need to take input of numbers only when the character is +,-,*,/,%
Otherwise you don’t have to take input of numbers from user.
Make these changes in your code after reading the question again carefully.