Bhuvan InfoTech Android App

Download our Android App and browse Technical News, Projects, Computer Tricks more easily with lots of Interesting Features.

Tuesday, June 14, 2016

Find factorial of any number | C program

#include<stdio.h>
int main()
{
    int g,f,i;
    printf("Type a number to find factorial: ");
    scanf("%d",&g);
    f=1;
    for(i=1;i<=g;i++)
        f = f * i;
    printf("Factorial: %d",f);
 return 0;
}
Bhuvan Arora

No comments:

Amazing Deal !