Search for question
Question

The factorial of a number n is the product of all number from 1 up to the number n. Using the forstatement, write a code segment that prints the factorial

of an integer number. The factorial of an integernumber n is shown in the mathematical form below. n !=\prod_{k=1}^{n} k For example the factorial of number 5 is 5! = 5 * 4 * 3 * 2 * 1 = 120 The expected output :

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7