i am working on a program that calculates
pi=4*(1-1/3+1/5-1/7+1/9-1/11+1/13+...)
etc i know im going to use a for loop for this because i need 30000 terms to approximate the value
can anybody help me in implementing this? any ideas would help and will be much appreciated