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 Progress

Date:04/20/05
Author:Rich Uchytil
URL:n/a
Comments:2
Info:http://www.progress.com
Score: (2.50 in 8 votes)
/* Progress 4GL version of 99 Bottles of Beer.
 * programmer: Rich Uchytil  rich@cray.com
 * 10/30/95
 */

def var i as int no-undo format "z9".

do i = 99 to 1 by -1:
  disp i "bottles of beer on the wall," skip
       i @ x as int format "z9" "bottles of beer" skip
       "Take one down and pass it around," skip
       i - 1 format "z9" "bottles of beer on the wall."
  with no-labels no-box no-attr 1 down.
  pause 1 no-message.  /* needed otherwise it would run too fast */
end.

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
Single "display"jrs of sb stone07/30/081

Comments

>>  jim said on 07/30/08 20:34:16

jim Doesn't take into account the exceptions of the last 3 verses :-(

>>  AxelF said on 09/11/09 11:54:05

AxelF What jim said :(

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: