Language Rexx
| Date: | 04/20/05 |
| Author: | Lee Stewart |
| URL: | n/a |
| Comments: | 2 |
| Info: | n/a |
| Score: |
/* Rexx Version of the Bottles program */
/* by Lee Stewart (ls@sweng.stortek.com) */
Trace Off;
Do Forever;
Do i = 99 To 1 By -1;
If i > 1 Then pl = 's';
Else pl = '';
Say i 'bottle'pl 'of beer on the wall,' i 'bottle'pl 'of beer';
Say 'Take one down, pass it around';
End;
Say 'No more bottles of beer on the wall, no more bottles of beer';
Say 'Go to the store and buy some more';
End;
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
99 bottles of beer on the wall, 99 bottles of beer
Take one down and pass it around
98 bottles of beer on the wall, 98 bottles of beer.
Take one down and pass it around
etc. The second line should actually be "Take one down and pass it around, xx bottles of beer on the wall"