12 days of Christmas

1 post in this topic

Here's an easy, but fun one.

Create the song, "the twelve days of Christmas" in any language from the following...

String = "On the"

Array = (First Second Third Fourth Fifth Sixth Seventh Eighth Ninth Tenth Eleventh Twelfth)

String = "day of Christmas, my true love gave to me..."

Hash = ('Drummers Drumming' => 12,

'Pipers Piping' => 11,

'Lords-a-Leaping' => 10,

'Ladies Dancing' => 9,

'Maids-a-Milking' => 8,

'Swans-a-Swimming' => 7,

'Geese-a-Laying' = 6,

'Gold Rings' => 5,

'Colly Birds' => 4,

'French Hens' => 3,

'Turtle Doves' => 2,

'And a Partridge in a Pear Tree.' => 1,);


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now