Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number = int(input("Please enter a number: "))
- factorial = 1
- for product in range(1, number + 1):
- if number > 0:
- factorial = factorial * number
- number = number - 1
- print(product, "x", number, "t= ", factorial)
Add Comment
Please, Sign In to add comment