C语言while循环语法要点实例 C语言终止循环实例 C语言while循环语法要点 C语言while循环语法要点实例 /* while1.c -- watch your braces */ /* bad coding creates an infinite loop */ #include <stdio.h> int main(void) { int n = 0; while (n < 3) printf("n is %d\n", n); n++; printf("That's all this program does\n"); return 0; } C语言终止循环实例 C语言while循环语法要点