Output

Enter the any no. : 5
Factorial = 120

Factorial of number using recursion

The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called as recursive function. Here we write a factorial program using recurtion.