17 lines
364 B
C
17 lines
364 B
C
#include <stdio.h>
|
|
|
|
#define MAX 10
|
|
|
|
int main(void)
|
|
{
|
|
int count = MAX + 1;
|
|
while (--count > 0)
|
|
{
|
|
printf("%d bottles of spring water on the wall, "
|
|
"%d bottles of spring water!\n", count, count);
|
|
printf("Take on down and pass it around,\n");
|
|
printf("%d bottles of spring water!\n\n", count - 1);
|
|
}
|
|
|
|
return 0;
|
|
} |