Computer Science, asked by boss47, 1 year ago

write a c++program to find whether the given number is power of 2 or not

Answers

Answered by kutty10
0
Given a positive integer, write a function to find if it is a power of two or not.

Examples:

Input : n = 4 Output : Yes 22 = 4 Input : n = 7 Output : No Input : n = 32 Output : Yes 25 = 32

hope it helps you
Similar questions