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