You are on page 1of 1

#include<stdio.

h>
#include<conio.h>
int main()
{
int i,f=1,n;
printf("enter the numbers whose factorial is to be found\n");
scanf("%d",&n);
for(i=1;i<=n;i++)
f=f*i;
printf("\n factorial is %d",f);
getch();
return 0;
}

You might also like