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 Anduril

Date:07/08/11
Author:Ville Rantanen
URL:n/a
Comments:0
Info:http://csbl.fimm.fi/anduril
Score: (3.00 in 18 votes)
beers=99
verse1="of beer on the wall"
verse2="Take one down and pass it around, "
for x:std.range(beers,1) {
    if (x>1) s="s" else s=""
    std.echo("\n"+x+" bottle"+s,verse1+", "+x+" bottle"+s+" of beer.")
    if ((x-1)>1) s="s" else s=""
    if (x>1) 
        std.echo(verse2+(x-1)+" bottle"+s,verse1+".")
    else
        std.echo(verse2+"no more bottles",verse1+".")
}
std.echo("\nNo more bottles",verse1+", no more bottles of beer. \n"+
  "Go to the store and buy some more, "+beers+" bottles",verse1+".")

Download Source | Write Comment

Alternative Versions

Comments

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: