Computer Science, asked by vicky8610, 3 months ago

Write a recursive function to find the factorial of a non-negative integer n.​

Answers

Answered by Anonymous
3

Answer:

hello,

the function is using python

Explanation:

#factorial of number using recursion

def factorial(n):

   if n==1:

       return 1

   else:

       fact=n*factorial(n-1)

   return fact

# main

num=int(input("enter the number"))

print(factorial(num))

hope it helps you

please mark brainliest

@ItzSnowySecret07

Similar questions