Tell us about yourself!
The while loop is used to continue looping until a valid choice is entered. So if Choice < min or Choice > max, it is out of range and is not a valid selection, so we want to prompt the user to enter a valid selection. Once choice >= min and Choice <= max, the condition in the while loop will be false. The code will then continue on to the next statement in the function, which is "return Choice", which will then return the user's choice for other functions to use.
C For Beginners: Functions/...View Instructable »