C Program codes using recursion


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.

SUM OF n NATURAL NUMBERS



FINDING THE nTH ELEMENT IN THE FIBONACCI SERIES


FACTORIAL OF A NUMBER


Comments