How do I make this code to where if a user entered credits that are less than 0 and greater than 100 as Invalid? Then repeat and as the question How many credit hours do you have? I don't know how to make it repeat saying invalid until the user enters the right amount of credits then ask the question again.
The 11th line makes no sense. The W in while should be lowercase, and you shouldn't have that ; at the end. Also you'll need another cin in the while block in order to query the user again, otherwise the cout << "Answer is Invalid, Try Again!" << endl; line would repeat forever.