Language Cold Fusion
(standard version)
| Date: | 04/20/05 |
| Author: | Steven Reich, Michael Dinowitz |
| URL: | n/a |
| Comments: | 3 |
| Info: | n/a |
| Score: |
<!--- 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
| Version | Author | Date | Comments | Rate |
|---|---|---|---|---|
| UDF version | S. Isaac Dealey | 04/20/05 | 2 | |
| cfscript | S. Isaac Dealey | 04/20/05 | 1 |
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
<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
2) You used evaluate unnecessarily.
3) "1 Bottles of Beer on the wall"?
More Fail on your plate of Fail, Mr. Fail?