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 Tiger

(correction to previous submission)

Date:05/01/12
Author:Micah Walter
URL:n/a
Comments:0
Info:n/a
Score: (2.00 in 1 votes)
/* For fun in CS350 at Haverford College. */
/* Micah Walter '14 */

for i := 1 to 100 do
  (if (100 - i > 1) then
    (printint(100 - i); print(" bottles of beer on the wall,\n");
     printint(100 - i); print(" bottles of beer.\n");
     if (100 - i > 2) then
       (print("take one down, pass it around,\n");
        printint(99 - i); print(" bottles of beer on the wall.\n\n"))
     else
       (print("take one down, pass it around,\n");
        print("1 bottle of beer on the wall.\n\n")))
   else
     (print("1 bottle of beer on the wall,\n1 bottle of beer.\n");
      print("take one down, pass it around,\n");
      print("no more beer on the wall!\n")))

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
1Laurent Le Brun06/12/051

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: