Topic: Bit Manipulation Problem / Level: beginner

Problem: Set the ith bit and clear the (i-1)th bit in a given number.

Run the code to see the output here...