Factorial in Io

Example for versions Io-2008-01-07

This example uses iterative factorial definition. Program output for large numbers looks in the following way:

12! = 479001600
13! = 6.227021e+009
14! = 8.717829e+010
15! = 1.307674e+012
16! = 2.092279e+013
F := 1;
for(N,0,16,
   N print;
   "! = " print;
   F println;
   F := F * (N+1);
);