2016-12-05 22:15:40 +01:00
|
|
|
[[File:pi_symbol.jpg|500px||right]]
|
2013-04-08 13:02:41 -07:00
|
|
|
|
2016-12-05 22:15:40 +01:00
|
|
|
Create a program to continually calculate and output the next decimal digit of <big><big><math>\pi</math></big></big> (pi).
|
|
|
|
|
|
|
|
|
|
The program should continue forever (until it is aborted by the user) calculating and outputting each decimal digit in succession.
|
|
|
|
|
|
|
|
|
|
The output should be a decimal sequence beginning 3.14159265 ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note: this task is about ''calculating'' pi. For information on built-in pi constants see [[Real constants and functions]].
|
2013-04-08 13:02:41 -07:00
|
|
|
|
2014-01-17 05:32:22 +00:00
|
|
|
|
|
|
|
|
Related Task [[Arithmetic-geometric mean/Calculate Pi]]
|
2016-12-05 22:15:40 +01:00
|
|
|
<br><br>
|