Language Scriptol
| Date: | 03/06/06 |
| Author: | Sandrine Takis |
| URL: | n/a |
| Comments: | 0 |
| Info: | http://www.scriptol.net |
| Score: |
`` Scriptol version of 99 bottles of beer
`` by Sandrine Takis - Public Domain
text bottle(int n)
if n = 0 return "no more bottles of beer"
return text(n) + " bootle" + plural(n) + " of beer"
text b1
for int i in 99 -- 0 step -1
b1 = bottle(i)
if i > 0
print b1, "on the wall,", b1 + ","
print "take one down, pass it around,"
print bottle(i - 1), "on the wall."
/if
/for
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