Computer Science, asked by munnuruprudhvi, 3 months ago

2. Create a Python program to print factorial of number 10. to positiven

Answers

Answered by anonymous0108
4

Answer:

i=10

factorial =1

while i>0:

factorial =factorial*I

i=i-1

print(factorial)

Answered by yogeshbhuyal7
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