Python Program to Find the Factorial
by nazeemnob17 in Circuits > Software
1288 Views, 3 Favorites, 0 Comments
Python Program to Find the Factorial

Python Programming
Open Python IDLE in Your Smartphone or Computer
Type or Copy This Python Code

c=1
e=0
n=input("Enter a number ")
j=n
for i in range(2,n+1):
c=c*i
e=1
if(e==1):
print ("{0} is the format of the given number").format(c),j
e=0
n=input("Enter a number ")
j=n
for i in range(2,n+1):
c=c*i
e=1
if(e==1):
print ("{0} is the format of the given number").format(c),j
Save Using Extension .py
for example:- factorial.py
Run Your Program

enter any number and find its factorial