Created
July 24, 2020 14:09
-
-
Save ahmedazizkhelifi/8658c533738b4a193dcce20c3d25d489 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def iterative_factorial(n): | |
f = 1 | |
for i in range(2, n+1): | |
f *= i | |
return f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment