Factorials

Learn how to recursively compute the factorial of integer n.

We'll cover the following...

Recursive computation of factorials

This example is a slight cliché, but it is still a good illustration of both the beauty and pitfalls of recursion.

The factorial of an integer, nn, is the product of all the integers between 11 and nn. For example, six factorial (usually written 6!6!) is:

6543 ...