Language Objectstar
| Date: | 04/20/05 |
| Author: | Anonymous |
| URL: | n/a |
| Comments: | 4 |
| Info: | n/a |
| Score: |
Also known as HURON.
BOTTLES_OF_BEER;
_ LOCAL COUNT;
_ ----------------------------------------------------------------------
_ ------------------------------------------------------------+---------
_ COUNT = 99; ¦ 1
_ UNTIL EQUAL : ¦ 2
_ CALL MSGLOG(COUNT || ' BOTTLE(S) OF BEER ON THE WALL'); ¦
_ CALL MSGLOG(COUNT || ' BOTTLE(S) OF BEER'); ¦
_ CALL MSGLOG('TAKE ONE DOWN AND PASS IT AROUND'); ¦
_ COUNT = COUNT - 1; ¦
_ CALL MSGLOG(COUNT || ' BOTTLE(S) OF BEER ON THE WALL'); ¦
_ CALL MSGLOG(''); ¦
_ CALL SIGNAL_EQUAL(COUNT, 0); ¦
_ 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
This program will work beautifully
Regards,
Paraag
It's been 3 years since I last did that, but it's all coming back to me now...
Wait, that's a song isn't it?
Later
C