A demonstration of how to write a recursive function. Project calculates the factorial of a number to demonstrate how to use recursion.
Recursive functions can be dangerous! Poorly written, they can eat up memory and CPU cycles. Recursive functions MUST have 1 or more exit conditions, and one of those exit conditions MUST be met at some point in order to prevent an infinite loop.