What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-09 17:15:05
Factorial of a number using recursion
# Factorial of a number using recursion def recur_factorial(n): if n == 1: return n else: return n*recur_factorial(n-1) num = 7 # check if the number is negative if num < 0: print("Sorry, factorial does not exist for nega... Add solution