Twelve days of Christmas

Twelve days of Christmas

Updated Jan 19, 2014 at 08:35PM EST by henke37.

Added Jan 14, 2014 at 04:20AM EST by henke37.

Like us on Facebook!

PROTIP: Press 'i' to view the image gallery, 'v' to view the video gallery, or 'r' to view a random entry.

This submission is currently being researched & evaluated!

You can help confirm this entry by contributing facts, media, and other evidence of notability and mutation.


Twelve days of Christmas is a classical Christmas song. Many people have written variations on it.

C program with the lyrics

Due to the highly repetitive lyrics structure, people have written programs to output the lyrics.

#include <stdio.h>
    int main(int argc, char argv[]) {
    int i;
    for(i=0;i<12;++i) {
    printf("On the %dth day of Christmas my true love sent to me\n",i+1);
    switch(i) {
    case 11:
    puts("Twelve Drummers Drumming,");
    case 10:
    puts("Eleven Pipers Piping,");
    case 9:
    puts("Ten Lords-a-Leaping,");
    case 8:
    puts("Nine Ladies Dancing,");
    case 7:
    puts("Eight Maids-a-Milking,");
    case 6:
    puts("Seven Swans-a-Swimming,");
    case 5:
    puts("Six Geese-a-Laying,");
    case 4:
    puts("Five Gold Rings,");
    case 3:
    puts("Four Calling Birds,");
    case 2:
    puts("Three French Hens,");
    case 1:
    printf("Two Turtle Doves,\nand ");
    case 0:
    puts("a Partridge in a Pear Tree!");
    return 0;

<insert MIDI file here>

Recent Videos

There are no videos currently available.

Recent Images

There are no images currently available.

Top Comments

+ Add a Comment

Comments 15 total


+ Add a Comment

Add a Comment

Word Up! You must login or signup first!