You are viewing a single comment's thread. Return to all comments →
Python as well. Sum = n = input. while n > 1, decrement n and sum *= n, print sum, 5 lines.
I think you're right, this is almost cheating in these languages.
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 →
Python as well. Sum = n = input. while n > 1, decrement n and sum *= n, print sum, 5 lines.
I think you're right, this is almost cheating in these languages.