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
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
Chipset said on 01/31/06 19:53:06
LOL, that's not fair to use "(s" 8-)
WizardNumberNext said on 08/20/08 13:45:27
Is it too hard to write good piece of code?
You fucked up.
barrym said on 03/29/10 05:49:20
More lazy-ass "bottle(s)" code. C'mon Andy, give us a conditional
expression or two. Geez Louise..........