Results 1 to 4 of 4

Thread: bottle of beer (just for fun)

  1. #1
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    51
    Posts
    934
    Rep Power
    109

    bottle of beer (just for fun)



    [code=thinbasic]' Empty GUI script created on 04-08-2010 19:00:36 beery (ThinAIR)

    Uses "console"
    Dim beer As Long

    For beer = 99 to 1 step -1
    Printl str$(beer) + " bottle(s) of beer on the wall,"
    Printl str$(beer) + " bottle(s) of beer."
    Printl "Take one down, pass it around,"
    Printl str$(beer-1) + " bottle(s) of beer on the wall."
    Printl " "
    Next beer
    MsgBox 0, "cheers!"
    WaitKey[/code]
    Attached Files Attached Files
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  2. #2

    Re: bottle of beer (just for fun)

    Yeah, that is nice. But I miss the tune to it.

  3. #3

    Re: bottle of beer (just for fun)

    Classic!

    And maybe a first start presenting ThinBasic at RosettaCode?

  4. #4

    Re: bottle of beer (just for fun)

    good idea, I have to grin

    my version: if you are drunken there are more than one bottle you can see. I am a pure antialcoholic fan, it's seldom for youth, but that's true! and take attention: don't drive drunken if you are coming from party or girl friend, don't forget!

    [code=thinbasic]' Empty GUI script created on 04-08-2010 19:00:36 beery (ThinAIR)

    Uses "console"
    Dim beer As Long

    For beer = 99 to 1 step -1
    PrintL Str$(beer) + " bottle(s) of beer on the wall,"
    PrintL Str$(beer*2) + " however you can see in drunken mood bottle(s) of beer."
    Printl "Take one down, pass it around,"
    PrintL Str$(beer-1) + " bottle(s) of beer on the wall."
    Printl " "
    Next beer
    MsgBox 0, "cheers!"
    WaitKey[/code]

    denis

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •