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 c-smile

Date:07/26/05
Author:Andrew (Andrei) Fedoniouk
URL:http://terrainformatica.com
Comments:3
Info:http://c-smile.sourceforge.net/
Score: (2.83 in 99 votes)
// C-SMILE version of 99 Bottles of beer (99bottles.csp)
// (http://c-smile.sourceforge.net).
// Andrew Fedoniouk, http://www.terrainformatica.com

function main()
{
    var b = 99;
    while (b > 0) 
    {
        std::out.printf("%d bottle(s) of beer on the wall,\n",b);
        std::out.printf("%d bottle(s) of beer.\n",b);
        std::out.printf("Take one down, pass it around,\n");
        std::out.printf("%d bottle(s) of beer on the wall.\n\n",--b);
    }
    return 0;
}

Download Source | Write Comment

Alternative Versions

Comments

>>  Chipset said on 01/31/06 19:53:06

Chipset LOL, that's not fair to use "(s";) 8-)

>>  WizardNumberNext said on 08/20/08 13:45:27

WizardNumberNext Is it too hard to write good piece of code?
You fucked up.

>>  barrym said on 03/29/10 05:49:20

barrym More lazy-ass "bottle(s)" code. C'mon Andy, give us a conditional
expression or two. Geez Louise..........

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: