Factorial Program in C

#include<stdio.h>
void main()
{
	int i,n,f=1;
	printf("Enter number=");	
	scanf("%d",&n);
	for(i=1;i<=n;i++)
	{
		f=f*i;	
	}
	printf("Factoril=%d",f);		
}

Output:

Enter number=5
Factoril=120
b. tech. bca c language tutorial learn c language mca study c language