#include<stdio.h>
#include<conio.h>
int main()
{
int n,i,fact=1;
clrscr();
printf("enter any no. whose factorial you want to calculate");
scanf("%d",&n);
for(i=1;i<=n;i+ +) //loop execution start
{
fact=fact*i;
} //end of loop
printf("\nthe factorial of the given no. is %d",fact);
getch();
return 0;
}