Example 28: Factorial of a Number
Learn how to calculate the factorial of a number.
We'll cover the following...
We'll cover the following...
Problem
Write a program to find the factorial value of any number.
Example
| Input | Output |
|---|---|
| 5 | 120 |
| 7 | 5040 |
| 15 | 1307674368000 |
| 19 | 121645100408832000 |
Try it yourself
Try to solve ...