Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def factorial(number):
- product = 1
- for i in range(number):
- product = product * (i + 1)
- return product
- user_input = input("enter a non negative number:")
- factorial_of_the_number = factorial(user_input)
- print(factorial_of_user_input)
- factorial_of_the_number = factorial(user_input)
- factorial(user_input)
Add Comment
Please, Sign In to add comment