Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

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

VersionAuthorDateCommentsRate
Easily extensible, English-speakingSzabolcs Horvát03/04/080
2Konstantin Kouptsov02/27/060
3Anonymous04/20/050

Comments

>>  WingRabbit said on 09/15/09 12:59:37

WingRabbit I hate this f**ing language!!!!!!!! =,(

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!

Name:

eMail:

URL:

Security Code:
  
Comment: