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 ilc

Date:07/05/05
Author:Patrik Graf
URL:http://www.thinkinsoft.org
Comments:0
Info:n/a
Score: (3.00 in 15 votes)
public

  import system, stdio

private

  $Bottles: Byte = 99

  loop
    write($Convert.ToStr($Bottles)+" Bottles of beer on the wall, ")
    writeln($Convert.ToStr($Bottles)+" bottles of beer.")
    write("Take one down and pass it around, ")
    writeln($Convert.ToStr($Bottles)+" bottles of beer on the wall.")
    writeln(" ")
    $Bottles = $Bottles - 1
    if ($Bottles = 1) do (break)
  end

  write($Convert.ToStr($Bottles)+" Bottle of beer on the wall, ")
  writeln($Convert.ToStr($Bottles)+" bottle of beer.")
  write("Take one down and pass it around, ")
  writeln("no more bottles of beer on the wall.")
  writeln(" ")
  write("No more bottle of beer on the wall. ")
  writeln("No more bottles of beer...")
  write("Go to the store and buy some more...")
  writeln("99 bottles of beer.")

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: