Prompt user for maximum value

validated using while loop