C Programming
Computer Programming

Program in c to Find Factorial of a Number



Write a Program in c to Find Factorial of a Number

\* C Program to to Find Factorial of a Number *\

# include < stdio.h >
int   main( )
{

int   num, i, fact=1  ;
printf(" Enter the Number : ") ;
scanf("%d ", & num) ;
i = num ;
while (   i   >   0
{

fact = fact * i ;
i = i - 1 ;

}
printf("\n Factorila of Numbers is : ") ;
scanf("%d ", fact) ;
return ( 0 ) ;

}

Output of Program :

Output of Program in C to Find Factorial of a Number