0
Factorial program in python
What is answer in a question ❓
6 Answers
+ 3
If you need help, describe the issue.
Do not spam solutions. Q&A is for asking programming related questions and getting help with code.
+ 2
Deepak Royal Gold 🥇🎯💕
Here is a code that might help you with factorial(s)
https://sololearn.com/compiler-playground/c1c5PcVpyU7h/?ref=app
+ 1
def factorial_iterative(n):
result = 1
for i in range(1, n + 1):
result *= i
return result
# Example usage
num = 8
print(f"The factorial of {num} is {factorial_iterative(num)}")
+ 1
WHAT is your question?
+ 1
print(8*7*6*5*4*3*2*1)
Yes is the same as
print(1*2*3*4*5*6*7*8)
0
Same code something change 😕