diff --git a/c05_expression/bottles.c b/c05_expression/bottles.c new file mode 100644 index 0000000..c933375 --- /dev/null +++ b/c05_expression/bottles.c @@ -0,0 +1,17 @@ +#include + +#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; +} \ No newline at end of file