99 bottles of beer: Difference between revisions

DM
(fix syntax highlighting)
(DM)
 
Line 3,678:
=={{header|Delphi}}==
See [[99 Bottles of Beer/Pascal]]
 
=={{header|DM}}==
Uses the [] variable insertion into strings, see [http://www.byond.com/docs/ref/#/DM/text]
 
/client/New()
..()
var/bottlestring
for(var/i in 99 to 0)
bottlestring = "[i || "No more"] Bottle[i != 1 ? "s" : ""] of Beer"
src << "[bottlestring] on the wall,"
src << "[bottlestring],"
src << "Take [i == 1 ? "it" : "one"] down, pass it around,"
src << "[bottlestring] on the wall,"
 
 
=={{header|Draco}}==
1

edit