Start of loop Program asks if it is larger than '(lowest number + highest number) / 2' If it is; 'lowest number' = '(highest number + lowest number) / 2' If it is NOT; 'highest number' -= 1 Program asks if it is smaller than '(lowest number + highest number) / 2' If it is; 'highest number' = '(highest number + lowest number) / 2' If it is NOT; 'smallest number' += 1 End of loop
now, I could write this, but I'm not sure if it's the most efficient way. Dad said, that it had to be the most efficient way of doing it.
Does any of you have an idea that you can break down for me?
(I'd rather code myself, no cheating
This post has been edited by Dogstopper: 16 December 2010 - 04:26 PM

New Topic/Question
Reply




MultiQuote






|