pi_calculator
Differences
This shows you the differences between two versions of the page.
pi_calculator [2012/03/04 09:19] – created xjia | pi_calculator [2012/03/18 01:12] (current) – xjia | ||
---|---|---|---|
Line 13: | Line 13: | ||
g = 0; | g = 0; | ||
| | ||
- | for (;b-c;) f[b++] = a/5; | + | for (;b-c;) f[b] = a/5, b=b+1; |
for (; | for (; | ||
- | for (b=c; d=d+f[b]*a, f[b]=d%(g=g-1), | + | for (b=c; d=d+f[b]*a, f[b]=d%(g=g-1), |
} | } | ||
pi_calculator.1330852775.txt.gz · Last modified: 2012/03/04 09:19 by xjia