Why isn't this case structure working....?

PaulS:

Serial.flush();

Why? There are incredibly few situations where it makes sense to flush serial data.

There are two switch statements. Which one "isn't working"? What do you expect it to do? What does it do, instead?

I was just testing that out....

Well the code is supposed to start with a prompt for the user to insert a number 1 or 2 to symbolize which motor they wanted to use.

After that, it is supposed to prompt the user with another choice to choose how many steps they desire the selected motor to rotate.

The code breaks after the first case structure....

In the serial monitor it will show this:

Which stepper motor would you like to select? [1 or 2]:

1 "<== This is the printed input for the first case structure"
How many steps would you like to take?

  1. 500
  2. 1000
  3. 1500
  4. 2000
  5. 3000

-35 "This is the printed input for the second case structure to determine the number of steps"
Which stepper motor would you like to select? [1 or 2]: