Product of all consecutive Integer numbers upto n is called Factorial of a Number and is denoted by n!. For Example, the value of 5! is 120.
We first take input from user and store it in variable n. Then we initialize a variable Fact with value 1 and variable i with value 1. Repeat next two steps until i is less than n.
1. Multiply Fact with current value of i
2. Increment i with 1 At last, print the value of Fact.
Super definition awesome I am intelligent so I can able to understand this concept .