The Twelve Days of Christmas: Difference between revisions

The Twelve Days of Christmas en Yabasic
(Added solution for Action!)
(The Twelve Days of Christmas en Yabasic)
Line 6,326:
A partridge in a pear tree.
</pre>
 
 
=={{header|Yabasic}}==
<lang yabasic>dim day$(12), gift$(12)
for i = 1 to 12: read day$(i): next i
for i = 1 to 12: read gift$(i): next i
for i = 1 to 12
print "On the ", day$(i), " day of Christmas,"
print "My true love gave to me:"
for j = i to 1 step -1: print gift$(j): next j
print
next i
end
 
data "first","second","third","fourth","fifth","sixth"
data "seventh","eighth","ninth","tenth","eleventh","twelfth"
data "A partridge in a pear tree."
data "Two turtle doves and"
data "Three french hens"
data "Four calling birds"
data "Five golden rings"
data "Six geese a-laying"
data "Seven swans a-swimming"
data "Eight maids a-milking"
data "Nine ladies dancing"
data "Ten lords a-leaping"
data "Eleven pipers piping"
data "Twelve drummers drumming"</lang>
 
 
=={{header|Z80 Assembly}}==
2,130

edits