Language GRWL
Date: | 02/01/06 |
Author: | antonyclark |
URL: | antonyclark@gmail.com |
Comments: | 0 |
Info: | antonyclark@gmail.com |
Score: | (2.50 in 2 votes) |
for N = 99 for $b = "bottle" for $d = "beer" page head (for pointsize 16 N " " $b " of " $d if continued " continued.. " fi fill*1 ) for b = N to 0 by -1 for ink(if b eq 0 red else black fi) ss(b,1) " of " $d " on the wall, " ss(b,0) " of " $d "." fill*.1 if b eq 0 "Go to the store and buy some more, " else "Take one down and pass it around, " fi ss(b-1,0) " of " $d " on the wall." fill*1 para next next next next next procedure ss(n,i) ( if n ge 1 n elif n eq 0 if i "N" else "n" fi "o more" else N fi " " $b if n eq 1 else "s" fi )
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