Tux Education Our New Education Channel Please Share And Subscribe It...

/* Program To Find Factorial Number */

// Compiler : Dev-C++ 4.9.9.2

#include<stdio.h>

int main()
{
    int i=1,f=1,num;
    
    printf("Number : ");
    scanf("%d",&num);
    
    while(i<=num)
    {
                 f*=i;
                 i++;
    }
    
    printf("\n\nFactorial Of %d Is : %d",num,f);
    
    getch();
    return 0;
}

Post a Comment