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 Lasso 3.6.6

Date:04/20/05
Author:Chris Latko
URL:n/a
Comments:1
Info:http://www.blueworld.com/
Score: (2.93 in 15 votes)
See http://www.blueworld.com/ for more informations

[lasso_comment]
    Implementation of 99 Bottles of Beer in Lasso 3.6.6.
    Chris Latko
    http://www.latko.org/
    October 19, 2002
[/lasso_comment]

<html>
<head>
<title>99 Bottles of Beer</title>
</head>
<body>

[var_set:'bottleNo'='Bottles']

[loop:loopfrom=99,loopto=2,loopincrement=-1]
    [if:(loopcount)==1]
        [var_set:'bottleNo'='Bottle']
    [/if]
    [loopcount] [var:'bottleNo'] of Beer on the wall, [loopcount]
[var:'bottleNo'] of Beer,<br>

    [if:(math_sub:(loopcount),'1')==1]
        [var_set:'bottleNo'='Bottle']
    [/if]
    Take one down, pass it around, [math_sub:(loopcount),'1']
[var:'bottleNo'] of Beer on the wall
[/loop]

1 Bottle of Beer on the wall, 1 Bottle of Beer,
<br>Take one down, pass it around, no Bottles of Beer on the wall

</body>
</html>

Download Source | Write Comment

Alternative Versions

Comments

>>  Humphrey27Aimee said on 08/29/10 07:06:33

Humphrey27Aimee Some time ago, I needed to buy a good house for my firm but I did not have enough money and couldn't order anything. Thank God my colleague proposed to try to get the <a href="http://bestfinance-blog.com">loan</a> at trustworthy bank. Therefore, I did so and was happy with my sba loan.

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: