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 | Output |
---|