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 :

Question image 1Question image 2Question image 3Question image 4Question image 5Question image 6Question image 7