You get get 6 attempts to find the number between 1-100. Each "attempt" can either be a guess, or a range it could fall in, responses you could receive are "Correct!", "My number is lower.", "My number is higher", or "My number is within that range".
You have 6 tries to guess it, NOT to know it.
If you can do it in less than 6 please do post it.