Python Program to Find the Factorial

Intro: Python Program to Find the Factorial

Python Programming

Step 1: Open Python IDLE in Your Smartphone or Computer

Step 2: 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

Step 3: Save Using Extension .py

for example:- factorial.py

Step 4: Run Your Program

enter any number and find its factorial

Share

    Recommendations

    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • Optics Contest

      Optics Contest
    • Plastics Contest

      Plastics Contest

    Discussions