Language seachange
($GL, currently owned by xko in the UK)
| Date: | 11/24/05 |
| Author: | James Robson |
| URL: | n/a |
| Comments: | 0 |
| Info: | http://www.indexsystems.co.uk/Partners/partners.html |
| Score: |
public proc beer()
{
let bottles := 99
while bottles > 0
{
display bottles^" bottles of beer on the wall," wait -1
display bottles^" bottles of beer." wait -1
display "Take one down, pass it around," wait -1
bottles := bottles - 1
if bottles > 0
{
display bottles^" bottles of beer on the wall." wait -1
display ""
}
else
{
display "No more bottles of beer on the wall." wait -1
display ""
display "No more bottles of beer." wait -1
display "Go to the store and buy some more, 99 bottles of beer on the wall." wait -1
}
}
}
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