C Program to Calculate Factorial of a Number
Factorial of an integer is the product of the integer and all the integers below it; e.g. factorial five ( 5! ) is equal to (5*4*3*2*1) =120.
//C Program to calculate factorial of a number
int n, i, fact=1;
printf("Enter a number: ");
for (i=1; i<=n; i++)
printf("Factorial = %d", fact);
Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more.
Sign Up for our weekly newsletter to get update about new content.