Simple calculator

https://ide.codingblocks.com/s/39513
my code for https://hack.codingblocks.com/contests/c/537/195
It is passing only half of the test cases, I am satisfying the constraints too, pls let me know what’s wrong.

Thanks

You are supposed to print each output in a new line. Check for the test case given below
*
1
2
/
4
0
(
)
+
3
2
;
X

got it, forgot to put an “endl”,
thanks

yeahh :slight_smile: