Coding challenge

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.

Type your code here:


Lua reference

See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: