Basic calculator -code not working

i tried my best sir please check my code

Hi Pankaj, you have to break that question into smaller parts.

  1. You have to check the input character whether it is + or - or x or /
  2. then using switch choose that operation and try to write that code with this logic.

If you have any other doubts, please feel free to ask.