Guess my number: Your friend chosses an integer between 0 and 100. You have to find out that number by asking questions, but your friend can answer only in 'yes' or 'no'. What strategy would you use?
Answers
Answer:
I will ask my friend that is the number 100 ,if he tell no then the number will be 0.
Step-by-step explanation:
As you have written 'number between 0 and 100'.
which means there is only 2 numbers.
Either it will be 0 or 100.
Answer:
It is you can say a magic trick of mathematics. If I am free to ask questions to the guesser, I would ask whether the number is a prime or composite number. I can ask that whether the number is even or odd. I can also ask factors concerning the divisibility of the number. Suppose the guessed secret number is 50, if I ask whether it is a factor of 5 or not. It will be yes and, I might succeed in my guess. In this way, if I keep asking about the number, I can go to the nearest guess. Really, my strategy is to ask questions regarding the number from which we can know more about the number.
Step-by-step explanation: