When doing the program practice, suddenly report an error.
The error screenshot is as follows:


The solution is as follows:
Just put parentheses around the end of the case.

The error screenshot is as follows:


The solution is as follows:
Just put parentheses around the end of the case.
