Language Euphoria
(standard version)
Date: | 04/20/05 |
Author: | Don Phillips |
URL: | n/a |
Comments: | 2 |
Info: | http://www.rapideuphoria.com |
Score: | ![]() |
-- Euphoria -- www.rapideuphoria.com -- -- Author: Don Phillips -- atom Beers sequence Bottles Beers = 99 while Beers != 0 do Bottles = "Bottle" & (Beers!=1)*'s' printf( 1, "%d %s of beer on the wall,\n", {Beers,Bottles} ) printf( 1, "%d %s of beer.\n", {Beers,Bottles} ) printf( 1, "Take one down, pass it around,\n", {} ) Beers -= 1 Bottles = "Bottle" & (Beers!=1)*'s' printf( 1, "%d %s of beer on the wall.\n\n", {Beers,Bottles} ) end while
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
Bottles = ""
sequence Bottles
then it is initialized in
Bottles = "Bottle" & (Beers!=1)*'s', instead of "" you have "Bottle" & (Beers!=1)*'s'