|
Assign SecretNumber = 64
Display 'Please guess the secret number' Read Guess
While Guess <> SecretNumber Do
If Guess < SecretNumber Then
Display 'Your guess was too LOW. Try again.' Read Guess
End
If Guess > SecretNumber Then
Display 'Your guess was too HIGH. Try again.' Read Guess
End
End
Display 'Correct!'
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Adrian Moore is the Development Manager for the SCADA Vision system developed by ABB Inc in Calgary, Alberta.
He has been interested in compilers, parsers, real-time database systems and peer-to-peer solutions since the early 90's. In his spare time, he is currently working on a SQL parser for querying .NET DataSets (http://www.queryadataset.com).
Adrian is a Microsoft MVP for Windows Networking.