Jump to content

The Twelve Days of Christmas: Difference between revisions

m
m (→‎{{header|11l}}: Indented multi-line string literals)
Line 3,073:
</pre>
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang Mathematica>daysarray = {"first", "second", "third", "fourth", "fifth", "sixth",
daysarray = {"first", "second", "third", "fourth", "fifth", "sixth",
"seventh", "eighth", "ninth", "tenth", "eleventh", "twelfth"};
giftsarray = {"And a partridge in a pear tree.", "Two turtle doves",
Line 3,087 ⟶ 3,086:
daysarray[[i]],
If[i == 1, "A partridge in a pear tree.",
Row[Reverse[Take[giftsarray, i]], ","]]]], {i, 1, 12}]</lang>
</lang>
{{out}}
<pre style="height:55ex;overflow:scroll">
Line 3,191 ⟶ 3,189:
Three french hens,
Two turtle doves,
And a partridge in a pear tree.</pre>
</pre>
 
=={{header|MiniScript}}==
1,111

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.