Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = mystery_int
- factorial_result = 1
- while i > 1:
- if (i == mystery_int):
- factorial_result = i * (i - 1)
- else:
- factorial_result = factorial_result * (i - 1)
- i = i - 1
- print(factorial_result)
Advertisement
Add Comment
Please, Sign In to add comment