2. Create a Python program to print factorial of number 10. to positiven
Answers
Answered by
4
Answer:
i=10
factorial =1
while i>0:
factorial =factorial*I
i=i-1
print(factorial)
Answered by
0
# Python program to find.
# factorial of given number.
import math.
def fact(n):
return(math.factorial(n))
num = int(input("Enter the number:"))
f = fact(num)
print("Factorial of", num, "is", f)
Similar questions