0
What is wrong in the following code??
I tried making a simple calculator but something is wrong and I don't know what is wrong can somebody help me? https://code.sololearn.com/cwFgcF36mR2W/?ref=app I also tried the above code using switch but still there is some error. https://code.sololearn.com/cmJU2nHkLfOa/?ref=app Tell me what's wrong in both the codes?
2 Respuestas
0
Martin Taylor I changed the '÷' part and error there has been sorted.
When I am taking numbers before symbol it code is not working as intended but when I am taking input symbols before number then it is working. WHY?
0
Martin Taylor also could you suggest a better way for taking inputs