#include <stdio.h>
int fact(int n){
int f=1;
for(int i=1;i<=n;i++)
f=f*i;
return f;
}
int main() {
int x;
printf("veuillez entrer votre factoriel\n");
scanf("%d",&x);
printf(" factoriel de %d est %d",x,fact(x));
}
To embed this project on your website, copy the following code and paste it into your website's HTML: