Language WYLBUR
| Date: | 06/22/05 |
| Author: | Richard L. Guertin |
| URL: | http://lindy.stanford.edu/~guertin/ |
| Comments: | 0 |
| Info: | http://www.depts.ttu.edu/itts/documentation/wylbur/wylbur.html |
| Score: |
xproc () begin
declare number bottles
bottles = 99
while (bottles gt 1) begin ; Sing the song
write '&(bottles) bottles of beer on the wall. &(bottles) bottles of beer.'
write 'Take one down, pass it around.'
bottles = bottles - 1
if (bottles gt 1) begin
write '&(bottles) bottles of beer on the wall.'
write ' ' ; print blank line
end
else begin ; only one left
write 'Only 1 more bottle of beer on the wall!'
write ' ' ; print blank line
write 'Take it down, pass it around.'
write 'No more bottles of beer on the wall (Burp).'
bottles = 0
end
end
xreturn
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