// debug_factorial.c // // Write a C program that takes a positive integer as input, calculates the // factorial of that number and prints it out. // // This program was written by YOUR-NAME-HERE (z5555555) // on INSERT-DATE-HERE #include int main (void) { int num = 0; int factorial = 0; print("Enter a number: "); scan("%d", num); int counter = num; while (counter > 0): factorial *= counter print("The factorial of %d is %d\n"); return 0; }