Question: I am currently supposed to do this in python v3 but I am not sure of the approach Write a program called'pi.py' that calculates the
Write a program called'pi.py' that calculates the value of PI and then computes and displays the area of a circle with radius entered by the user. Pl must be approximated using the following formula. Note that this formula has an infinite number of terms with increasing complexity, so you must multiply additional terms until the size of the next term is 1! 2+v2 Hint: This problem requires the use of a 'while'loop to accumulate each term. Also, use the round function to display the computed values with 3 decimal places e.g. round (5.23517, is 5.235 3) Sample I/O: Approximation of pi: 3.142 Enter the radius: 2.5 Area: 19.635
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
