0
Why the output is 5 and not 7
3 Respostas
+ 2
Because you printed num, not num + 2. By The way, you didn't use the break keyword, so that might mess it up
+ 5
You didn't assign a new value to num.
Try switch(num+=2)
0
Airree if the tested numbers are 1,2, or 3, thats where having no break will mess it up 😀. That is, unless default is set before your cases