Write a program that will display $\pi$ on the screen, from the fact that $\frac{\pi}{4}=1-\frac{1}{3}+\frac{1}{5}-\frac{1}{7}$. Extend the sum to the first 100 terms.← Back to challenges | Lessons

Run Share Lua reference

Here is a share link to your code:

Close