quick Question

He everyone. My problem is simple...well probably for you guys it is. I am writing a small program that requires user to input string. I want the program to only accept certain string values. How do I do that? Say I am requesting user to put in a color and instead they input a shape. I want to reject the shape and prompt for color again. Thanks for any help

-Collin
Make a loop and check the user input with a list of valid values. If is a match stop the loop otherwise ask again
Topic archived. No new replies allowed.