0
Why in my code the else if statement is not working??please explain
5 Answers
+ 1
there was unneeded curly braces
here is your morified code
https://code.sololearn.com/cJdeJ5CQryxA/?ref=app
+ 1
it's working fine.....
it's printing 0. since the first part of if is true
0
But if else statement yet not fixed
0
it shows same output when num1>10 and num1<10
0
in your code there is no increment or decrement for num1 so the cod inside" if else" never gets executed