You are here: Home &rarr Personal &rarr The Factorial Code in Python

The Factorial Code in Python

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: ,


About Chinmoy


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 Disqus
Content on this Blog is Copyright © 2010 Techarraz. Some rights reserved.
Designed by Theme Junkie. Powered by WordPress.