Guess the number between 1 to n in log2(n) chances.

Enter value for n:
Enter your guess: