factorial.in 135 B

1234567891011
  1. /* 12 factorial is 479001600 */
  2. n = 12;
  3. result = 1;
  4. i = 1;
  5. while (i <= n) {
  6. result = result * i;
  7. i = i + 1;
  8. }
  9. print(result);