Spaces:
Runtime error
Runtime error
int main() { | |
int number = 10; // Hardcode the input value | |
int factorial = 1; | |
for (int i = 1; i <= number; i++) { | |
factorial *= i; | |
} | |
printf("The factorial of %d is: %d | |
", number, factorial); | |
return 0; | |
} |