Python Program to Find the Factorial

by nazeemnob17 in Circuits > Software

1268 Views, 3 Favorites, 0 Comments

Python Program to Find the Factorial

temp_-288353031.jpg
Python Programming

Open Python IDLE in Your Smartphone or Computer

Type or Copy This Python Code

temp_-832750077.jpg
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

Save Using Extension .py

for example:- factorial.py

Run Your Program

temp_471962941.jpg
enter any number and find its factorial