+ 6

I want to print that the number entered by user is power of 2 or not. But its not happening. In C language.

When I enter number 10 then also it prints that "10 is power of 2". Please tell me what is my mistake. https://code.sololearn.com/c7reUBPXU5Ju/?ref=app

23rd Jan 2019, 5:40 AM
Yamin Mansuri
Yamin Mansuri - avatar
1 ответ
0
Pretty nice, Bennett Post. I'll keep that method in mind.
23rd Jan 2019, 8:23 AM
Zen
Zen - avatar