C Program to Calculate Factorial Using Function
This is C Program and shows how can you calculate Factorial using Function.
A user here will enter the number and calculate the factorial using Function. Here are more examples that you can check on factorial.
- C Program to Find Greater of Two Entered Numbers
- C Program to Find Greater Number by Using Function
- C Program to Find Square Root of Entered Number
- C Program to Find the Factorial of Entered Number
long int factorial(int);
long int fact;
printf("Factorial number of %d=%ld",fact);
long int factorial(int n)
long int fact=1;
for(i=1; i<n; i++)