Topic: Bit Manipulation Problem / Level: intermediate

Problem: Write a program to calculate the number of bits needed to represent a given integer in binary.

Run the code to see the output here...