I'm going to ume 'validate age' means make sure the age variable is a valid number. In that case it's simple: you simply run a while loop which asks the user to input the age over and over again until they type in a number (and not a letter or anything else).
No comments:
Post a Comment