Basic calc problem

https://ide.codingblocks.com/#/s/28134
https://hack.codingblocks.com/contests/c/509/195

https://ide.codingblocks.com/#/s/28168

The lines cin>>num1>>num2 are changed. We are required to take input if we get a valid operator i.e. +,-,*,/,%. So in that case, i take input num1 and num2 and rest of the code remains same.

1 Like