Hi! You must login or signup first!

Not

Submission   4,885

About

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;
    }

Exploitable
<insert MIDI file here>


Share Pin

Recent Images 1 total


Recent Videos 0 total

There are no recent videos.




Load 15 Comments
Twelve days of Christmas

Twelve days of Christmas

Updated May 13, 2017 at 12:21PM EDT by Twenty-One.

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

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.

About

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 &lt;stdio.h&gt;
    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;
    }

Exploitable
<insert MIDI file here>

Recent Videos

There are no videos currently available.

Recent Images 1 total


Top Comments


+ Add a Comment

Comments (15)


Display Comments

Add a Comment