Inactive Tutor answered 07/01/14
Tutor
New to Wyzant
are you allowed to actually type in the first 20 dec places, which are well-established, and then println? This would be the easiest
alternatively, you can use converging series http://mathworld.wolfram.com/PiFormulas.html
1st line of this page is one of the fast algorithms http://en.wikipedia.org/wiki/Ramanujan%E2%80%93Sato_series
other: http://en.wikipedia.org/wiki/Approximations_of_%CF%80