Language WordBasic
| Date: | 04/20/05 |
| Author: | Cory Sandahl |
| URL: | n/a |
| Comments: | 0 |
| Info: | n/a |
| Score: |
' Word Basic version of 99 bottles of beer
' by Cory Sandahl (sandahl@u.washington.edu) 12/10/96
Sub MAIN
FileNew .NewTemplate = 1, .Template = "Normal.DOT"
StartOfDocument
s$ = "s"
For NumberOfBeers = 99 To 1 Step - 1
Insert Str$(NumberOfBeers) + " bottle" + s$ + " of beer on the wall," + Chr$(11)
Insert Str$(NumberOfBeers) + " bottle" + s$ + " of beer..." + Chr$(11)
Insert "Take one down, pass it around," + Chr$(11)
If (NumberOfBeers - 1) < 2 Then
s$ = ""
End If
Insert Str$(NumberOfBeers - 1) + " bottle" + s$ + " of beer on the wall. " + Chr$(11) +
Chr$(11)
Next
Insert Chr$(11) + Chr$(11) + "No more beer. Bye-bye."
End Sub
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