// The following code is meant to read in integers and print out the // factorial of that integer until the user enters Ctrl + D. // However, it contains a number of errors that you need to fix. Good luck! // Note: the factorial of a number is the product of all positive // integers less than or equal to that number. #include // DO NOT MODIFY THIS FUNCTION PROTOTYPE void compute_factorial(int number, int *factorial); int main(void) { int num1; int factorial; printf("Enter a number: "); while (scanf("%d", &num1) > 1) { compute_factorial(num1, *factorial); printf("The factorial of %c is %lf\n", num1, factorial); } return 0; } void compute_factorial(int number, int *factorial) { int result; for (int i = number; i > 0; i++) { result = result * i; } factorial = result; return; }