Implementation of guess the number

http://rosettacode.org/wiki/Guess_the_number