Microsoft Small Basic

Program Listing:
Embed this in your website
'Choose a random number between 1 and 100

'Do the following 8 times

    'Ask the user for a guess.

    'If the guess is correct

       'Play a bell

       'Tell the user that they won the game and exit

    'If the guess is too high

       'Tell the end user too high

    'If the guess is too low

       'Tell the end user too low

   'If after 8 times they haven't guessed correctly, tell them they've lost the game

































Copyright (c) Microsoft Corporation. All rights reserved.