Basic calculator test cases not passed

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

sir, here is my code for basic calculator. only 2 out of 6 test cases are passed. How to rectify it?

Hey Yukti, your code has many bugs:

  • your output is not matching the output format
  • there is no need to put a while loop for dividing 2 numbers
  • value result is not updating
  • everytime it print result is… for invalid cases also

Here I am sharing my code for your clarification you can refer this.