A super class Number is defined to calculate the factorial of a number.
Answers
Answered by
0
The factorial of a number is defined is the product of natural numbers from one to that particular number. Mathematically,
n! = 1 * 2 * 3 * .... * (n-1) * n
For example, the factorial of 4 is
4! = 1 * 2 * 3 * 4 = 24
This article will explain you how to find the factorial of a number through iteration as well as recursion.
n! = 1 * 2 * 3 * .... * (n-1) * n
For example, the factorial of 4 is
4! = 1 * 2 * 3 * 4 = 24
This article will explain you how to find the factorial of a number through iteration as well as recursion.
Similar questions