How should I use default case on switch without goto? I mean, if user's input is invalid, and I want user to type input again, how should I do that? Previously I used goto xxx; -statements, but everyone keeps saying that goto -statements are bad programming.