« Back to profile of doom2008

  • Python

    Factorial

    Calculate factorial number

    21:49 Apr 09 2011 | Tags : factorial,
    						#!usr/bin/python
# By Ala'a Hammad
# Email :ip7@live.de
num = 1
x = raw_input('Insert the number please ')
x = int(x)
while x > 1:
    num = x * num
    x = x-1
print(num)
    			         
Add comment
To add a comment, please : Login or Sign up
    doom2008
    Ala'a Hammad
  • New visitor?

    On setCode, you can save your codes, functions and classes, you can also share them with your friends, and track your favorite developer

    Join the SetCode community
  • Your language here :