I strongly suggest you take a look at the answer from thebook....cramster has th
ID: 3616419 • Letter: I
Question
I strongly suggest you take a look at the answer from thebook....cramster has the answer for this problem. what i wanna isto come up with different method from the answer cramster gives,but don't use other knowledge that ive not learnt.An approximate value of pi can be calculated using the seriesgiven below: (pi = 4[1-1/3+1/5-1/7+1/9....+((-1)^n)/(2n+1)] write a program to calculate the approximate value of piusing this series. the program takes an input n that determines thenumber of terms in the approximation of the value of pi and outputsthe approximation . include a loop that allows the user to repeatthis calculation for new values n until the user says she or hewants to end the program.
An approximate value of pi can be calculated using the seriesgiven below: (pi = 4[1-1/3+1/5-1/7+1/9....+((-1)^n)/(2n+1)] write a program to calculate the approximate value of piusing this series. the program takes an input n that determines thenumber of terms in the approximation of the value of pi and outputsthe approximation . include a loop that allows the user to repeatthis calculation for new values n until the user says she or hewants to end the program.