The program now prompts the user for a number representing the top limit