bottles.c 373 B

123456789101112131415
  1. #include <stdio.h>
  2. #define MAX 100
  3. int main(void)
  4. {
  5. int count = MAX + 1;
  6. while (--count > 0) {
  7. printf("%d bottles of spring water on the wall, "
  8. "%d bottles of spring water!\n", count, count);
  9. printf("Take one down and pass it around,\n");
  10. printf("%d bottles of spring water!\n\n", count - 1);
  11. }
  12. return 0;
  13. }