Topic: Bit Manipulation Problem / Level: intermediate

Problem: Write a program to calculate the number of distinct bit patterns possible with a specified number of bits.

Run the code to see the output here...