Praveen | Typing Speed Test is a very useful Software available for free Download.

C Programs to Factorial

      Factorial C program to findout every numbers of the integer numbers. Factorial means any numbers to multiply decreasing of his own numbers upto one numbers. In the factorial, zero factorial is equal to one. Factorial are denoted by number!. For example:- 5! = 120.


Factorial C programs codes

#include<stdio.h>
#include<conio.h>

void main()
{
   double int n, i, fact = 1;
   clrscr();
   printf("\n Enter a number to calculate factorial ");
   scanf("%ld",&n);
   for( i = n ; i > 0 ; i-- )
   {
         fact = fact*i;
   }
   printf("\n %ld Factorial is-> %ld",n,fact);
   getch();
 }


Output:-