Created
August 21, 2014 16:18
-
-
Save wicksome/41c3521e07820761d22c to your computer and use it in GitHub Desktop.
파이썬 3 팩토리얼
This file contains 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 factorial(x): | |
if(x == 1): | |
return x | |
return x * factorial(x-1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment