Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python factorial

def factorial(n):
    fact = 1
    for num in range(2, n + 1):
        fact *= num
    return fact
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #factorial
ADD COMMENT
Topic
Name
8+3 =