Discussion Forum | Board Infinity

Write a program to find the Factorial of a number

To find the Factorial of a number.

def factorial(n):

if n==1:

return n

else:

return n + factorial(n-1)