Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fakultät python

def factorial(n): 
    return 1 if (n==1 or n==0) else n * factorial(n - 1);  
num = 5; 
print("Factorial of",num,"is", factorial(num))
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
2+3 =