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

(cfscript)

Date:04/20/05
Author:S. Isaac Dealey
URL:n/a
Comments:1
Info:n/a
Score: (2.67 in 9 votes)
By S. Isaac Dealey

<cfscript>
   for ( x = 99 ; x gt 1 ; x = x - 1) {
      WriteOutput("#x# bottles of beer on the wall...<br>#x# bottles of beer!<br>");
      WriteOutput("Take one down, pass it around...<br>";
   }
   WriteOutput("1 bottle of beer on the wall...<br>1 bottle of beer!<br>");
   WriteOutput("Take one down, pass it around...<br>No bottles of beer on the wall");
</cfscript>

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
standard versionSteven Reich, Michael Dinowitz04/20/052
UDF versionS. Isaac Dealey04/20/052

Comments

>>  Mizdog said on 02/01/06 00:00:14

Mizdog missing closing bracket on
WriteOutput("Take one down, pass it around...<br>";

should be
WriteOutput("Take one down, pass it around...<br>";);


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: