Twelve Days of Christmas
I wrote a program to print out the verses of the Twelve Days of Christmas. This started from an argument with my sister about whether the gifts are cumulative or not (i.e. do you end up with twelve partridges, or just one?). Sadly, this program doesn’t really answer the question, any more than singing it would.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
It turns out you get 364 gifts if they are cumulative, which, oddly enough, is exactly enough for you to get a present every day for a year except Christmas Day. Coincidence?