Smith Flores

What is recursion?

Recursion is called a process by which a function calls itself repeatedly, until a certain condition is satisfied, if there is no specific case that terminates the recursion, an infinite loop could be created.

Example:

Calculate the power of a number using recursion:

--

--