Question: 8) Write an algorithm that has the user enter any positive integer between 1 and 10, the algorithm needs to verify that number is between
8) Write an algorithm that has the user enter any positive integer between 1 and 10, the algorithm needs to verify that number is between these two and if not display error message and then repeat to have user enter correct number. Once correct number is inputted it will then display that number and the square of that number and repeat this until 0, do not display 0. Sample output for user entering 3 is as follows. You can use any loop style you like. (15 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
