'Bottles of Beer' project
There is a rhyme (a bit like 'Ten Green Bottles' ) called 'Bottles of Beer' which runs thus:
4 bottles of beer on the wall,
4 bottles of beer,
Take one down, pass it around (hic),
3 bottles of beer on the wall.
3 bottles of beer on the wall,
3 bottles of beer,
Take one down, pass it around (hic),
2 bottles of beer on the wall.
2 bottles of beer on the wall,
2 bottles of beer,
Take one down, pass it around (hic),
1 bottles of beer on the wall.
1 bottles of beer on the wall,
1 bottles of beer,
Take one down, pass it around (hic),
0 bottles of beer on the wall.
... well apart from the slight grammatical problem. Clearly the starting number can vary.
I need help with the following:
-Requests the starting value for 'Bottles of Beer' . (For this question assume the user always enters a sensible value.)
-Loops the appropriate number of times
-Prints a verse of the rhyme in each iteration
Thanks in advance!