Hi guys, I have the next program as assignment, but because english is not my first language, i just canīt get what it really wants me to do, could any of you explain it to me in a simplier way please?
The number π, or 3.1415..., can be calculated from the infinite series
π = 4 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 ...
Query the user for the number of terms to use in the approximation, and then calculate π. Then ask if they wish to repeat using a different number of terms. Indicate in your email the approximate number of iterations required to calculate π to six decimal places. Use double instead of float for extra precision.
Hint: This lab is easy to solve if you store the numerator and denominator in separate variables.