Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. def fact(x):
  2. if x == 0:
  3. return 1
  4. return x * fact(x - 1)
  5. x=int(input())
  6. print (fact(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement