Basic Calculator

https://hack.codingblocks.com/contests/c/474/195

http://ide.codingblocks.com/#/s/13946

Help me with this. Not able to pass any test case.

1: you don’t have to input character and numbers simultaneously.
check for valid character first.
2: you don’t have to output “terminate” instead try exit command to terminate the program.

can you provide the code please

https://ide.codingblocks.com/s/34717

I have corrected your code.

https://ide.codingblocks.com/s/38586

whats wrong with this code.
only 1 test case passed.

Put endl after invalid operation statement also.

still 2 test cases not accepting

1.You dont need to handle the zero divisor case. They have been excluded from the constraints already.
2.You need to ensure if the first character itself is X/x. In that case u need to terminate ,so instead of do while use while.
3.You haven’t added the endl in default case.

for further clarification u may see the changes here
https://ide.codingblocks.com/s/42806

Even after clicking on the ide link to see the code. I’m not able to see any code. The ide is just showing hello world code.