1
0

while2.c 252 B

123456789101112
  1. /* while2.c -- watch your semicolons */
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. int n = 0;
  6. while (n++ < 3); /* line 7 */
  7. printf("n is %d\n", n); /* line 8 */
  8. printf("That's all this program does.\n");
  9. return 0;
  10. }