Just click the green flag and watch! Here's a really simple way to calculate a value of Pi using equal width trapezoids to approximate the unit circle. The Pythagorean formula is used to get the heights of the trapezoids. You can get 5 digits of Pi with only 800 trapezoids - not bad for such a simple method :)
Digits of Pi background is from http://www.dancohen.org/2010/03/08/the-last-digit-of-pi/ The method I used was inspired by the one described here http://www.easy-math.net/area-of-a-circle-and-derivation-of-pi/ but I decided to use trapezoids instead of rectangles to get faster convergence.