#include <stdio.h>
int main() {
int n;
printf("enter a no. \n");
scanf("%d",&n);
int fact =1;
for(int i=1;i<=n; i++)
{
fact = fact * i;
}
printf("final factorial is : %d\n",fact);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: