Skip to content

Instantly share code, notes, and snippets.

View eberle1080's full-sized avatar

Chris Eberle eberle1080

View GitHub Profile
@gcr
gcr / pi.c
Created January 1, 2012 01:31
/*
* Program to compute an approximation of pi
* by Brian Westley, 1988
* (requires pcc macro concatenation; try gcc -traditional-cpp)
*/
#define _ -F<00||--F-OO--;
int F=00,OO=00;
main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO()
{