#include<stdio.h>
int multiplynumbers(int n);
int main()
{
int n;
printf("Enter a value : \n");
scanf("%d",&n);
printf("The factorial of %d = %d",n,multiplynumbers(n));
}
int multiplynumbers(int n)
{
if(n>=1)
return n*multiplynumbers(n-1);
else
return 1;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: