C/Factorial/FOR/FCTRL.C
//Program to find factorial of a number
#include<stdio.h>
#include<conio.h>
int main()
{
int n,res=1,i;
printf("Enter the number : ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
res=res*i;
}
printf("factorial no=%d",res);
getch();
return 0;
}