C programme to print Factorial of a fixed number

 #include<stdio.h>

int main()

{

    int i=4,n=5;

    while(i>=1)

    {

        n=n*i;

        i--; 

    }

    printf("%d",n);


    return 0;

}

Comments

Popular posts from this blog

C Programme to find Area Of Rectangle

C programme to reverse the number