Computing Factorials

In this lesson, we will use recursion to solve the basic mathematical problem of computing a factorial.

What is a factorial?

A factorial is the product of an integer and all the positive integers less than it. It is denoted by the symbol: !!

For example, 4! (read as four factorial) is denoted as follows:

4!=4×3×2×1=244!=4\times3\times2\times1=24

6!=6×5×4×3×2×1=7206!=6\times5\times4\times3\times2\times1=720

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy