You are here: Home &rarr Personal &rarr The Factorial Code in Python
The Factorial Code in Python
Posted by
Chinmoy on
Jun 03, 2008 |
View Comments
And then there is theĀ very famous Python. Amazingly the factorial program in this case becomes even simpler. It is just a normal factorial code seemingly working fine for abnormally large integers as well!
fact=1
x=input("Enter the no :")
for x in range(1,x+1):
fact*=x
print "Factorial :"
print fact
Tags: Programming, Python
Chinmoy Kanjilal is the admin of this blog is a programmer and a technology, Linux and web2.0 enthusiast and evangelist from India with an eye for detail. He has a fondness for intriguing software products and hardware hacks.
blog comments powered by