Question #277713

Write a program to print the factorial of N

Expert's answer

# 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)
LATEST TUTORIALS
APPROVED BY CLIENTS