Created
March 29, 2019 23:00
-
-
Save bee-san/9f4bee22789d18fe16769fa30ce9d938 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
n = 6 | |
def recur_factorial(n): | |
if n == 1: | |
return n | |
else: | |
return n * recur_factorial(n-1) | |
print(recur_factorial(n)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment