Calculating the Factorial of a Number

Introduction

Let’s consider the example of the recursive factorial function. In this lesson, we will calculate the factorial of a number n denoted by n!.

📝 The factorial of a given number is the product of the number by all the numbers smaller than it until it reaches 1.

Create a free account to view this lesson.

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