language: Python (python 2.7.2)
date: 104 days 22 hours ago
link:
visibility: public
1
2
3
4
5
6
7
def factorial(n):
        product = 1
        for i in range(n):
                product = product*(i+1)
        return product
 
print factorial(3)