Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #DiseΛnar una funcion que calcule el factorial del un numero
- def factorial(a):
- b=a
- if b==0:
- b=1
- for i in range(1, a):
- b=b*i
- return b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement