Computer Science, asked by Danisa5272, 1 year ago

How to Find Factorial of Number Using Recursion in Python?

Answers

Answered by khushi769
0

Hello mate!!

✔️Python Program to Find Factorial of Number Using Recursion

___________________________

✏️def recur_factorial(n):

✏️if n == 1:

✏️return n.

✏️return n*recur_factorial(n-1)

✏️# take input from the user.

✏️num = int(input("Enter a number: "))

✏️# check is the number is negative.

Similar questions