(correct lyrics version)
|Score:||(3.09 in 56 votes)|
'99 Bottles of Beer in VBS 'coded by exec For i = 99 To 0 Step -1 Select Case i Case 1 msg i & " Bottle of beer on the wall, " & i & " bottle of beer." msg "Take one down and pass it around, no more bottles of beer on the wall." Case 0 msg "No more bottle of beer on the wall. No more bottles of beer..." msg "Go to the store and buy some more... 99 bottles of beer." Case Else msg i & " Bottles of beer on the wall, " & i & " bottles of beer." msg "Take one down and pass it around, " & i - 1 & " bottles of beer on the wall." End Select Next Sub msg(message) MsgBox message, , "99 Bottles of Beer" End Sub
|long version||Jonathan Harrison||05/17/05||3|
|WSH using recursion and Microsoft Agent||Bob Stammers||03/10/06||1|
|WSF, Microsoft Agent, EN/FR/DE||Bob Stammers||06/02/06||1|
|Demonstrates use of "class"||Bruce M. Axtens||09/29/05||0|
|short version||Philipp Winterberg||04/20/05||0|
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!