Language UGCL
(Optimized for speed)
Date: | 02/22/08 |
Author: | Fredrik Stromberg |
URL: | http://www.insto.org/ |
Comments: | 1 |
Info: | http://www.chl.chalmers.se/~hajo/oo2/ass/ass2_ugcl.pdf |
Score: | (2.50 in 2 votes) |
# Implemented in University of Gothenburg Command Language # Not intended as a real language. # Just something students make as part of a programming lab. set count 99 while { > $count 2 }{ puts "$count bottles of beer on the wall, $count bottles of beer." set count [ - $count 1] puts "Take one down and pass it around, $count bottles of beer on the wall." puts "" } puts "2 bottles of beer on the wall, 2 bottles of beer." puts "Take one down and pass it around, 1 bottle of beer on the wall." puts "" puts "1 bottle of beer on the wall, 1 bottle of beer." puts "Take one down and pass it around, no more bottles of beer on the wall." puts "" puts "No more bottles of beer on the wall, no more bottles of beer." puts "Go to the store and buy some more, 99 bottles of beer on the wall."
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
YorkLena said on 07/09/10 05:48:35
If you are willing to buy real estate, you will have to receive the <a href="http://bestfinance-blog.com">loan</a>. Moreover, my sister all the time utilizes a sba loan, which supposes to be the most reliable.