The value for PI can be determined by the series equation

PI=4x(1-1/3+1/5-1/7+1/9-1/11+1/13-....)

write an interactive program that asks the user how manu terms of series

equation to use in approximating PI. Then calculate and display the

approximation. Here is a sample run:

PI Approximation Program

How many terms of the series should be included?

(The more terms, the better the approximation)

=> 3

Approximation value of pi is 3.466667.

1