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 Cold Fusion

(standard version)

Date:04/20/05
Author:Steven Reich, Michael Dinowitz
URL:n/a
Comments:2
Info:n/a
Score: (2.95 in 20 votes)
<!---  99 Bottles of Beer in Cold Fusion by Steven Reich tauman@earthlink.net --->
<!---  Additions by Michael Dinowitz --->

<HTML>
<HEAD>
<TITLE>Bottles of Beer</TITLE>
</HEAD>

<BODY>

<CFLOOP INDEX="idx" FROM="99" TO="2" STEP="-1">
<CFOUTPUT>
#idx# Bottles of Beer on the wall, #idx# Bottles of Beer,
<BR>Take one down, pass it around, #Evaluate(idx - 1)# Bottles of 
Beer on the wall
<P>
</CFOUTPUT>
</CFLOOP>
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

VersionAuthorDateCommentsRate
UDF versionS. Isaac Dealey04/20/052
cfscriptS. Isaac Dealey04/20/051

Comments

>>  Ben said on 08/08/05 22:20:34

Ben BenScript
<p>
<!B BenLoop index="i" from="99" to="2" steporder="rev">
<!B=>
i$ bottles of beer on the wall, $i bottles of beer,
<br />Take one down, pass it around, $Evaluate(i - 1)$ bottles of
beer on the wall
</p>
<!/=B>
</BenLoop>
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

>>  Al said on 04/14/08 19:27:11

Al ColdFusion is one word, please.

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: