Example Functions

Author: Michael E. Locasto
File: recursion.html
Date: February 23, 2006
Summary: The purpose of this program is to show the use of recursive functions to calculate problems.
Most repetition control structures are aimed at iterative control flow: doing one task after the next in some logically related order. Even normal use of function calls falls into this category (the same as 'while', 'do..while', and 'for' loops).

However, there is one type of use of functions that falls under the category of recursive control flow. Recursive functions are self-referential functions. That is, they are functions that call themselves.