Language merd
| Date: | 01/10/06 |
| Author: | qstone |
| URL: | n/a |
| Comments: | 0 |
| Info: | http://merd.sourceforge.net |
| Score: |
(99..0).each( qty->
if (qty>1) then
"%d bottles of beer on the wall, %d bottles of beer\n".printf(qty,qty)
if (qty>2) then
suffix="%d bottles of beer on the wall.\n".printf(qty-1)
else
suffix = "1 bottle of beer on the wall.\n"
else
if (qty==1)
println("1 bottle of beer on the wall, 1 bottle of beer.")
suffix = "no more beer on the wall!"
"Take one down, pass it around,%s\n".printf(suffix)
)
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments