-
-
Save maxp/907959 to your computer and use it in GitHub Desktop.
Program to compute an approximation of pi by Brian Westley, 1988
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // required: gcc -traditional-cpp pi.c | |
| #define _ -F<00||--F-OO--; | |
| int F=00,OO=00; | |
| main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO() | |
| { | |
| _-_-_-_ | |
| _-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_-_-_-_-_ | |
| _-_-_-_-_-_-_-_ | |
| _-_-_-_ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment