Language SETL
Date: | 04/20/05 |
Author: | Arion Lei |
URL: | n/a |
Comments: | 0 |
Info: | http://galt.nyu.edu/~bacon/setl-server.html |
Score: | (2.90 in 10 votes) |
$ SETL version $ written by Arion Lei (philipl@cs.ust.hk) beer := {1,2..99}; (until beer={}) print(#beer, " bottles of beer on the wall,"); print(#beer, " bottles of beer. Take one down, pass it around,"); $ take an arbitrary one down beer less := arb beer; if beer/={} then print(#beer, " bottles of beer on the wall."); end if beer/={}; end until; print("No more bottles of beer on the wall, no more bottles of beer."); print("Go to the store and buy some more... 99 bottles of beer");
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