In this tutorial we will write a function to calculate the factorial value of any integer and call the function in main function.
Factorial of a number is the product of all the numbers preceding it. For example, Factorial of 6 is 720 (1 x 2 x 3 x 4 x 5 x 6 = 720). i.e., !6 = 720.