π/4 = 1 - 1/3 + 1/5 - 1/7 + 1/9 ...

write an algorithm to compute π. because the formula is an infinite series and an algorithm must stop after a finite number of steps, you should stop when you have the result determined to six significant digits

Q&A Education