The posted code shouldn't pass any odd numbers to the switch.