I'm trying to make an interactive program (guess the number)
the idea is that i put a number in my head and the program tries to guess it.
the program should ask whether the number is less or greater than the middle of the search interval.
the number should be between 1 & 1000.
so what should the psuedo code be ?