The program can be found at the following site: http://mathmate.brinkster.net/c/guessnum.txt
Write me if you have questions.
Note: this is the same answer to your previous question posted as a supplement to the answer, in case you haven't had time to see it.