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 Trumpet Winsock

Date:04/20/05
Author:Andrew Turley
URL:n/a
Comments:0
Info:n/a
Score: (1.67 in 3 votes)
#  99 Bottles of Beer on the Wall
#  Written by Andrew Turley aturley@sound.net
$para = " bottle"
$parb = " of beer on the wall,"
$parc = " of beer."
$pard = "Take one down, pass it around,"
$pare = " of beer on the wall."
$parf = "no bottles of beer on the wall!"
$pl = "s"
%beer = 99
repeat
  display %beer
  display $para
  if ! %beer = 1
    display $pl
  end
  display $parb\n
  display %beer
  display $para
  if ! %beer = 1
    display $pl
  end  
  display $parc\n
  display $pard\n
  %beer = %beer - 1
  if %beer > 0
    display %beer
    display $para
    if %beer > 1
      display $pl 
    end
    display $pare\n
  end
  if %beer = 0
    display $parf\n
  end
  display \n
until %beer = 0

Download Source | Write Comment

Alternative Versions

Comments

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: