Basic calculator returned 1

https://ide.codingblocks.com/#/s/27800
please see whats wrong

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

i have made the required changes. Please do provide with problem link for fast replies

1 Like

thanks for the solution but can you please tell where my logic was wrong?
problem link-https://hack.codingblocks.com/contests/c/509/195
my code-https://ide.codingblocks.com/#/s/27800

i have made changes in your solution itself. Check the solution once. I have written the mistakes.