The Twelve Days of Christmas: Difference between revisions

Add EasyLang
m (Fixed a typo)
(Add EasyLang)
Line 1,636:
print()
}</syntaxhighlight>
 
=={{header|EasyLang}}==
<syntaxhighlight lang="easylang">
days$[] = [ "first" "second" "third" "forth" "fifth" "sixth" "seventh" "eighth" "ninth" "tenth" "eleventh" "twelfth" ]
gifts$[] &= "Twelve drummers drumming"
gifts$[] &= "Eleven pipers piping"
gifts$[] &= "Ten lords a-leaping"
gifts$[] &= "Nine ladies dancing"
gifts$[] &= "Eight maids a-milking"
gifts$[] &= "Seven swans a-swimming"
gifts$[] &= "Six geese a-laying"
gifts$[] &= "Five golden rings"
gifts$[] &= "Four calling birds"
gifts$[] &= "Three french hens"
gifts$[] &= "Two turtle doves and"
gifts$[] &= "A partridge in a pear tree."
for i = 1 to 12
print "On the " & days$[i] & " day of Christmas,"
print "My true love gave to me:"
for j = 13 - i to 12
print gifts$[j]
.
print ""
.
</syntaxhighlight>
 
=={{header|Eiffel}}==
175

edits