Question: Write a program with the while loop which allows user to repeatedly enter a series of numbers (one number in each loop iteration). For each
Write a program with the while loop which allows user to repeatedly enter a series of numbers (one number in each loop iteration). For each entered number, its square value is calculated and printed. By the end of each loop iteration, user will be asked whether he/she wants to enter another number: if user enters Yes, loop continues; otherwise, loop terminates. [Run your program in Python IDLE to get rid of syntax errors and verify if the program works correctly as described above. Program that cannot run due to syntax error(s) will receive 0 point.] Enter a number: 3 The square of the entered number is 9 Do you want to continue? answer yeso yes Enter a number: 5 The square of the entered number is 25 Do you want to continue? answer yeso yes Enter a number: 10 The square of the entered number is 100 Do you want to continue? answer yeso no Edit View Insert Format
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
