Topic: Bit Manipulation Problem / Level: intermediate

Problem: Write a program that counts how many integers from 1 to n can be represented in binary with an even number of bits.

Run the code to see the output here...