Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fact(x):
- if x == 0:
- return 1
- return x * fact(x - 1)
- x=int(input())
- print (fact(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement