Language SAIL
| Date: | 04/20/05 |
| Author: | William Soley |
| URL: | n/a |
| Comments: | 0 |
| Info: | n/a |
| Score: |
COMMENT
"99 Bottles of Beer" in SAIL (popular on PDP-10s)
William Soley <soley@sun.com> 14-May-2003
;
BEGIN "99BOB"
REQUIRE "{}" DELIMITERS;
DEFINE crlf = {('15&'12)};
INTEGER n;
FOR n _ 99 STEP -1 UNTIL 1 DO
BEGIN "Loop"
STRING bottles;
bottles _ IF n > 1 THEN " bottles " ELSE " bottle ";
PRINT(n, bottles, "of beer on the wall.", crlf);
PRINT(n, bottles, "of beer,", crlf);
PRINT("take one down, pass it around,", crlf);
END "Loop";
PRINT("no more bottles of beer on the wall.", crlf);
END "99BOB"
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