Switch case stuck

The first one - you just need to be sure that any variable declarations in the case are contained in braces.

1 Like