The format of the stwith statement is generally as follows:
Each case means that if the value of expression is equal to case, then the statute is executed.
The keyword break causes the code to jump out of switch.
If there is no keyword break, the code will continue to execute the next situation. The keyword default is the result of execution when the value of all expressions is not equal to the value value.