The program does not break but simply continues processing the for loop. Create a program that prompts for a positive number greater than 2 (check this condition) and then keeps taking the square root of this number until the square root is less than 2. Print the value each time the square root is taken, along with the number of times the operation has been completed. For example:
Enter an integer greater than 2: 201: 4.4722: 2.1153: 1.454
Extra: Look ahead to string formatting (Section 4.41) to print the values to only three decimal places, as shown.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.