You write switch (expr) { case value1: statements; break; case value2: statements; break; }. Each case tests if expr equals that value. I'll show you that the expression must be an integer or character type.
You can't switch on strings or floats. Each case value must be a compile-time constant. The break statement ends the switch. Without it, execution falls through to the next case. I'll show you fall-through behavior in the next unit.