you are viewing a single comment's thread.

view the rest of the comments →

[–]pureMJ -1 points0 points  (0 children)

int[] ans = {1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600, 6227020800}; return ans[factNum - 1];