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 Gambas

(Gambas Almost Means BASic)

Date:03/26/07
Author:Medical-Wei
URL:http://a790407.no-ip.com
Comments:0
Info:http://gambas.sourceforge.net/
Score: (3.00 in 11 votes)
(With Console mode and create a new startup class.)

STATIC PUBLIC SUB Main()
DIM X AS Integer
DIM ProcStr AS String
FOR X=99 TO 0 STEP -1
ProcStr=X & " bottles of beer"
IF X=1 THEN ProcStr="1 bottle of beer"
IF X=0 THEN ProcStr="No more bottles of beer"
IF X<>99 THEN PRINT "Take one down and pass it around, " & ProcStr & " on the wall."
PRINT ProcStr & " on the wall, " & ProcStr &"."
NEXT
PRINT "Go to the store and buy some more, 99 bottles of beer on the wall."
END

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: