#include int main(void) { // Compute 9! (the factorial of 9) int i = 1, fact = 1; // multiply the numbers from 1 to 9 while (i < 10) { // while loops check the condition first fact *= i; //fact = fact * i; i++; } printf("9! = %d\n", fact); }