Ten Green Bottles

In this task, you're going to use your programming skills to print the words to the children's song Ten Green Bottles.


Here is a reminder of the commands you might need for this task. As the course progresses, you will get fewer of these reminders.

FOR N = 1 TO 10
PRINT "Hello"

will print the word Hello ten times. You don't have to count upwards or start at 1, and you can use the variable that you're using as the counter. The size of the steps is controlled using the STEP keyword (and the step size can be negative). The following program, for example, will print the numbers from 10 to 100, going up in 10s:

FOR N = 10 TO 100 STEP 10

Useful Links

If you can't remember how the song goes, or would like to read more about it, have a look at the Ten Green Bottles Wikipedia page.

Your Task

Your task is to produce a program to print the words to the song Ten Green Bottles. Your program should:

  1. be efficient and use a loop - it shouldn't just PRINT the whole song
  2. include the correct number of bottles at each stage, counting down from 10 to 1
  3. consider how to lay out the words to make the song clear and easy to read


You can use any other programming tricks you've learnt to improve the program. If you've been reading ahead, you could use an array to display the number in words instead of digits - e.g. ten green bottles instead of 10 green bottles.