...

/

Example 49: Calculate a Factorial

Example 49: Calculate a Factorial

Learn how to calculate the factorial of a number using recursion.

We'll cover the following...

Problem

Write a function that uses recursion to calculate the factorial of a number passed as a parameter.

Example

Input
...
Access this course and 1400+ top-rated courses and projects.