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 Sbasic

(Sesame Databases)

Date:11/18/05
Author:Bob Hansen
URL:http://www.sensiblesolutions.org
Comments:0
Info:http://www.sesamedatabase.com/
Score: (2.91 in 11 votes)
var n as Int
var t as Int		//Time delay between line prints (1000 = 1 second)
var vBottle as String

t=20

For n = 99 downto 1
    If n=1 Then vBottle = " bottle" else vBottle = " bottles" 
    WriteLn(n + vBottle  + " of beer on the wall,")
    Loiter(t)
    WriteLn(n + vBottle  + " of beer,")
    Loiter(t)
    WriteLn("Take one down and pass it around,")
    Loiter(t)
    WriteLn(n + vBottle  + " of beer on the wall." + @NewLine() )
    Loiter(t)
Next

WriteLn("......hic.........hic, hic..........hic")
WriteLn("Set 'em up again, Sam")

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: