Last active
March 24, 2017 16:24
-
-
Save souvikhaldar/8c0eb034ec21eeaaa591cb362398d388 to your computer and use it in GitHub Desktop.
null created by souvikhaldar - https://repl.it/Gcri/0
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 factorial(n): | |
if n==0: | |
return 1 | |
else: | |
return (n*factorial(n-1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment