C语言终止循环实例 C语言循环实例 C语言while循环语法要点实例 C语言终止循环实例 // when.c -- when a loop quits #include <stdio.h> int main(void) { int n = 5; while (n < 7) // line 7 { printf("n = %d\n", n); n++; // line 10 printf("Now n = %d\n", n); // line 11 } printf("The loop has finished.\n"); return 0; } C语言循环实例 C语言while循环语法要点实例