Practice · 1 of 1
Command Router
CHALLENGE
Difficulty: beginner+25 XP
Implement handle(command) returning: 'h' -> 1 (help), 'q' -> 2 (quit), anything else -> 0 (unknown). Use a switch.
Press Submit to check your solution.
Back to lesson: Practice: Switch Practice: Menu Logic