Answer to Question #277713 in Python for Karthik

Question #277713

Write a program to print the factorial of N

1
Expert's answer
2021-12-09T17:37:46-0500
# 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)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS