Topic: Bit Manipulation Problem / Level: intermediate

Problem: Write a program to count how many numbers can be represented using the bits of a binary number.

Run the code to see the output here...