+ 1
What did i do wrong
The conditions keep outputting the default expression https://code.sololearn.com/Wo3itmhcEDVz/?ref=app
2 ответов
+ 2
I don't think it's possible to use such conditions in switch. You can write "case 12:", but not "case age <= 12". If you want to do that, use if - else conditions instead.
+ 1
Yes owadokun Tosin Tobi Case statements can never have expression or conditions.
case inside switch can have only fixed values.