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.

essentialc++33 0 Newbie Poster

infamous 26 Junior Poster in Training

Dani 4,294 The Queen of DaniWeb Administrator Featured Poster Premium Member

BountyX 7 Posting Whiz in Training

essentialc++33 0 Newbie Poster

essentialc++33 0 Newbie Poster

BountyX 7 Posting Whiz in Training

essentialc++33 0 Newbie Poster

BountyX 7 Posting Whiz in Training

essentialc++33 0 Newbie Poster

BountyX 7 Posting Whiz in Training

essentialc++33 0 Newbie Poster

essentialc++33 0 Newbie Poster

loga88 0 Newbie Poster

beginner_199 0 Newbie Poster

raptr_dflo 48 Posting Pro

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.