Open main menu

CDOT Wiki β

Changes

BetaT

5 bytes added, 00:44, 8 March 2017
Application 2 Calculating Pi
d = 0;
 
i = k;
for (;;) {
 
d += r[i] * 10000;
 
b = 2 * i - 1;
r[i] = d % b;
 
d /= b;
 
i--;
 
if (i == 0) break;
 
d *= i;
}
212
edits