The case expression is compared to the switch expression. If the comparison evaluates to true, the code in the case block is executed.
case
switch
true
As we defined the num variable as an int, we can't use a string in the case evaluations.
num
int
string