Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

give the factorials of 6 in python

def factorial(x):
  if x == 0:
    return 1
  return x * factorial(x - 1)

result = factorial(6)
print(result)
 
PREVIOUS NEXT
Tagged: #give #factorials #python
ADD COMMENT
Topic
Name
2+7 =