0
Why my second switch condition is not working?
I want my second condition to be like ( if bill is between 50 and 200 ) then run this code. Tell me where I'm going wrong. https://code.sololearn.com/WJmyUvwfYx8X/?ref=app
1 Réponse
+ 2
The case values finally result to either 0 or 1, and not match with 100. So always return defaults..
Also You cannot use boolean as case values in switch...
If else works fine here..