Joe-G
10-28-2013, 03:25 PM
Getting ready to submit an assignment, but I have a quick concern that I've been having difficulty solving.
In my program, only certain inputs (A range of numbers that are allowed to be entered into the prompt) are allowed. If a number outside of this range is entered, that specific program repeats over and over.
My question is, how do I get that part of my program to repeat when some other invalid character is entered?
Ie. The prompt asks to enter a number from 1-3.
Any number less than 1 or greater than 3 reloops that portion. But If i enter any letter, symbol, a space, etc the program just quits.
Any quick help?
In my program, only certain inputs (A range of numbers that are allowed to be entered into the prompt) are allowed. If a number outside of this range is entered, that specific program repeats over and over.
My question is, how do I get that part of my program to repeat when some other invalid character is entered?
Ie. The prompt asks to enter a number from 1-3.
Any number less than 1 or greater than 3 reloops that portion. But If i enter any letter, symbol, a space, etc the program just quits.
Any quick help?