Language Io
| Date: | 04/20/05 |
| Author: | Laurent Vogel |
| URL: | http://lvogel.free.fr/ |
| Comments: | 1 |
| Info: | http://www.dtek.chalmers.se/~d97masa/files/amalthea084.zip |
| Score: |
See http://www.dekorte.com/Software/C/Io/
bottle = block(i,
if(i==0, return "no more bottles of beer")
if(i==1, return "1 bottle of beer")
return "" .. i .. " bottles of beer"
)
for(i, 99, 1,
current = bottle(i)
write(current, " on the wall, ", current, ",\n",
"take one down, pass it around,\n",
bottle(i - 1), " on the wall.\n\n")
)
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