Question: If a user enter invalid number, your program will continue to ask user until user enter a valid number. The following showed a user entered

If a user enter invalid number, your program will continue to ask user until user enter a valid number. The following showed a user entered 23 first and the system ask the user to enter a valid number. The user then enter 10 which is valid. The system will then ask the user to enter another number. The user then entered 2 which is also valid. Although the user did not enter numbers in ascending order, your program will compute squares and cubes from 2 to 10 rather than 10 to 2 as show below This page says: This page says: Enter a number between 1 and 20: Input not in range. Enter a number between 1 and 20: OK Cancel This page says: Enter a number between 1 and 20 OK Cancel number square cube 16 25 36 49 64 81 100 27 64 125 216 343 512 729 1000 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
