I am creating a code for class. The assignment is to make a menu and asking the user to pick 1 of 3 options. once they pick the option my code jumps into a while statement. My problem is once they pick an option, like 1, my code will not go to case 1 but instead jumps back to the beginning of the code. is there a syntax error in my code? Any help is appreciated. Thanks!
startNum is an int, on line 21 case'1': you write '1' which is a char, since startNum is an int, this case will never be called. try case 1: instead. Also don't forget to break at the end of your case.