Answers for "define the language factorial using recursive definition"

C++
0

factorial recursive

N= int(input())
def fun(n):
    if n ==1 or n==0:
        return 1
    else:
        n = n * fun(n-1)
        return n 


print(fun(N))
Posted by: Guest on June-26-2021

Code answers related to "define the language factorial using recursive definition"

Browse Popular Code Answers by Language