Recursive functions are functions that calls itself. This calling maybe direct or indirect. This process is called recursion. Using recursion we can solve certain problems very easily. The problems we have done using recursion are:
- Sum of n natural numbers
- Finding the nth element in Fibonacci series.
- Factorial of a number.
Comments
Post a Comment