Wednesday, July 8, 2015

Program to find Factorial of a number in python




number=input("Enter a character")
fact=1
c=1

while  c <= number:
 fact = fact * c
 c=c + 1
 print fact