Program to find factorial of given number in python.

Program to find factorial of given number in python:
Program:
print("                         //www.a3programming.blogspot.com")
a=int(input("Enter number to find factorial :"))
fact=1
for x in range(1,a+1):
    fact=fact*x
print(fact)


Expected output is:
//www.a3programming.blogspot.com
Enter number to find factorial :5
120

Post a Comment

0 Comments