-factorial of number is the multiplication of every integer number between 1 and that number.
factorial of 3 is 6(1*2*3)
factorial of 5 is 120(1*2*3*4*5)
#include < stdio.h>
printf("Factorial is %d",fac);
Factorial is 120
Factorial is 6
-In this program, we take an input of the number and try to find the factorial of the number.
-We run the loop start from 1 to input number i.e. for(i=1;i< n=;i++)
-Multiply each value of i in loop ans store in 'fact' variable and that is the required answer.