Topic: Bit Manipulation Problem / Level: beginner

Problem: Set all bits from MSB to the ith bit.

Run the code to see the output here...