Python By Code
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
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment