Answers for "Write a program which can compute the factorial of a given numbers"

5

factorial in python

def fact(n):
  return 1 if (n==0 or n==1) else n*fact(n-1)
fact(3)
Posted by: Guest on August-07-2020

Code answers related to "Write a program which can compute the factorial of a given numbers"

Python Answers by Framework

Browse Popular Code Answers by Language