Language Visual Basic (.NET)
| Date: | 04/20/05 |
| Author: | Anonymous |
| URL: | n/a |
| Comments: | 4 |
| Info: | n/a |
| Score: |
Step 1: Create a New Console Application and then, add the following code in
the principal Module:
Module Bottles
Sub Main()
' Visual Basic.NET version of 99 Bottles of beer (Bottles.vb)
' Fabrício Costa, fabricio_costa@msn.com
Dim Count As Int32
For Count = 99 To 1 Step -1
Console.WriteLine(Count & " bottle(s) of beer on the wall, " & Count & " bottle(s) of
beer.")
Console.WriteLine("Take one down, pass it around, " & (Count - 1) & " bottle(s) of beer
on the wall.")
Next
End Sub
End Module
Download Source | Write Comment
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!
Comments
Greatings formm piggest
"No more bottles of beer on the wall, no more bottles of beer.
Go to the store and buy some more, 99 bottles of beer on the wall."
This code is especially boring, but leave it up to Microsoft, to force their ideology on 'ya. Like that screewwwwweeeddd up Vista, that ought to be a crime. It should be free, OS & lang(s)., when it first comes out. Anyway, The VB code is longer and more interesting