i have to write a program that displays the value of pi for values for i = 10000,20000.....,and 100000
i have to use the following series
pi = 4(1-(1/3)+(1/5)-(1/7)+(1/9)-(1/11_+...+(1/(2i +1))-(1/(2i +1))
any ideas
i have to do a program with looping i cant use arrays
can someone give me a hint and a strategy on how to do this problem