Computer Science, asked by Tanisha1685, 1 year ago

A super class Number is defined to calculate the factorial of a number.

Answers

Answered by Princesingh0057
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. 

Similar questions