Twelve days of Christmas
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 <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>
Recent Videos
There are no videos currently available.
Top Comments
Gravity Man
Jan 14, 2014 at 06:56AM EST
Emerson Grey
Jan 14, 2014 at 09:24AM EST