Basic Calculator

Please Help me i am getting error

@s.v Hey buddy lemme review ya code!

@s.v Bro read this line very carefully.
If ch is among ‘+’, ‘-’, ‘*’, ‘/’ or ‘%’ it furthur takes two numbers (N1 and N2 as input). It then performs appropriate appropriate operation between numbers and print the number.

But what ya r doing is taking two inputs everytime. I have made some modifications in ya code.
Also bro mark ya doubt resolved and rate full.
Happy coding!


Using if instead of switch will reduce redundancy!