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 PureBasic

(standard version)

Date:04/20/05
Author:Philipp Winterberg
URL:http://www.winterbergs.de/
Comments:0
Info:http://www.purebasic.com/
Score: (2.32 in 31 votes)
; PureBasic version of 99 Bottles of beer (Bottles.pb)
; See http://www.purebasic.com/
; Philipp Winterberg, http://www.winterbergs.de

OpenConsole():ConsoleColor(0,15):a$=" bottle(s) of beer"
ConsoleTitle("99"+a$):c$ = " on the wall":ClearConsole()
For b = 99 To 1 Step -1
  PrintN(" "+Str(b)+a$+c$+","):PrintN(" "+Str(b)+a$+".")
  PrintN(" Take one down, pass it around,")
  PrintN(Chr(32)+Str(b-1)+a$+c$+Chr(46)):PrintN(Chr(32))
Next b
Input():End

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
GUI versionAnonymous04/20/051
Musical VersionGary Willoughby (Kale)11/02/060

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: