#include #include int main() { int i, n, factorial; printf("Factorial de n (1 * 2 * 3 * ... * n)\n"); printf("Dame el valor de n: "); scanf("%d", &n); factorial = 1; for(i=1;i<=n;i++) { factorial = factorial * i; } printf("El factorial de %d es %d\n", n, factorial); system("pause"); return 0; }