C++ Recursion Function

tutorial and example
tutorial and example

Recursion (recursive) function is such function which call itself again and again. A recursion function call takes within the same function. The condition where the recursive function terminates is called base case.

C++ Recursion Example

Output: