Language Fortress
(simple example)
Date: | 12/05/09 |
Author: | Benjamin Carlson |
URL: | n/a |
Comments: | 0 |
Info: | http://projectfortress.sun.com/Projects/Community |
Score: | (2.88 in 8 votes) |
(******** 99 Bottles of beer, a rendition from TacoDev *********) component bottles export Executable run() = do for i <- seq(99:1:-1) do println(i " bottles of beer on the wall, " i " bottles of beer.") println("Take one down and Pass it around, " (i-1) " bottles of beer on the wall.\n") end println("No more bottles of beer on the wall, no more bottles of beer.") println("Go to the store and buy some more, 99 bottles of beer on the wall.\n") end 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