Skip to content
C

Power of Two Check

Mediumjava

Read a positive integer and decide whether it is a power of two (1, 2, 4, 8, 16, ...), using the trick (n & (n - 1)) == 0.

Input: one integer n (n >= 1).

Output: one line — Yes or No.

Input (stdin)

Output

Run your code to see output here...