Written by Sai Sameera Thota on March 15, 2013 in Programming > Python

Python Program to Find Factorial of a Number

GET ALERTS:

Get our Latest updates delivered to your mailbox!

This article gives the source code of Python Program to Find Factorial of a Number. You can refer C++ Program.

n = int(input("Enter the number: "))
fact = 1
while n :
    fact = fact * n
    n = n-1
print( "Factorial of number is ",fact)

Output:
factorial

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: