Code for Program to find factorial of user specified number in C Programming
#include<stdio.h>
#include<conio.h>
void main()
{
longint fact=1,i,n;
clrscr();
printf("\n ENTER THE VALUE OF N: ");
scanf("%ld",&n);
for(i=n;i>=1;i--)
fact = fact * i;
printf("\nTHE FACTORIAL VALUE IS %ld",fact);
getch();
}
******************** OUTPUT *************************************************
ENTER THE VALUE OF N: 9
THE FACTORIAL VALUE IS 362880
*****************************************************************************