Language Q
Date: | 04/09/07 |
Author: | Albert Graef |
URL: | n/a |
Comments: | 0 |
Info: | http://q-lang.sf.net |
Score: | (3.02 in 117 votes) |
song = do verse [99,98..0]; verse 0 = puts "No more bottles of beer on the wall, no more bottles of beer.\n\ Go to the store and buy some more, 99 bottles of beer on the wall.\n\n"; verse I = printf "%s of beer on the wall, %s of beer.\n\ Take one down and pass it around, %s of beer on the wall.\n\n" (s I,s I,s (I-1)); s 0 = "no more bottles"; s 1 = "1 bottle"; s I = sprintf "%d bottles" I;
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