Here's a clever way to find $\pi$ (see Cheney, et. al, 5th ed., p. 39). See if you can translate this "pseudo-code"
into a working program to find $\pi$. It'll allow you to practice with for-loops and programming
formulas into the computer.
for k=1 to 5 (or more)
Now you try. It's up to you. See if you can translate the pseudo-code into a working program!
Type your code here:
See your results here:
At some point, to test your results, try subtracting your value of $x$ from math.pi and see how
close to $0$ you get.
Share your code
Show a friend, family member, or teacher what you've done!