+ 1
It is showing to put semicolon in Switch and more expressions.
2 ответов
+ 4
I would review the lessons about using the switch statement. I'm pretty sure you're missing some important aspects, like breaking the case when you're finished and correct capitalisation.
0
Depending on the language, semicolons may be compulsory (C and derivative languages, Java, etc.) and even where they are not (e.g. JavaScript) they are very helpful to break up the statements as required.