Language Mathematica
(Very short version.)
Date: | 03/16/06 |
Author: | Brenton Bostick |
URL: | http://www.wolfram.com |
Comments: | 1 |
Info: | http://www.wolfram.com/products/mathematica/ |
Score: | (2.87 in 15 votes) |
StringForm["`2``1`, `4`.\n`3`, `5``1`.`6`", " on the wall", #2@#, #3@#, ToLowerCase[#2[#]], ToLowerCase[#2[# - 1]], If[#==0, "", "\n"]]&[ #, If[# == 0, "No more", ToString[Mod[#, 100]]] <> " bottle" <> If[# == 1, "", "s"] <> " of beer"&, If[# == 0, "Go to the store and buy some more", "Take one down and pass it around"]& ]& /@ Range[99, 0, -1] //TableForm
Download Source | Write Comment
Alternative Versions
Version | Author | Date | Comments | Rate |
---|---|---|---|---|
Easily extensible, English-speaking | Szabolcs Horvát | 03/04/08 | 0 | |
2 | Konstantin Kouptsov | 02/27/06 | 0 | |
3 | Anonymous | 04/20/05 | 0 |
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
WingRabbit said on 09/15/09 12:59:37
I hate this f**ing language!!!!!!!! =,(