You are viewing a single comment's thread. Return to all comments →
JS/Javascript solution:-
function extraLongFactorials(n) { let ans = n; let i = n; while (i > 1) { i--; ans = BigInt(ans) * BigInt(i); } console.log(ans.toString()) return ans.toString(); }
Seems like cookies are disabled on this browser, please enable them to open this website
Extra Long Factorials
You are viewing a single comment's thread. Return to all comments →
JS/Javascript solution:-