Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Bitwise - Check power of 2 or not
//g++ 5.4.0 #include <iostream> int main() { int num; std::cin >> num; if(num && !(num & (num - 1))) std::cout << "Power of 2"; else std::cout << "Not power of 2"; }
run
|
edit
|
history
|
help
0
Test 16(2020)
StrSubCpyFind
WeekAgenda
top5words
Best buy/sell day in stock
horse aand goat working
Second program
Anagrams
OTHER - Two robots
TempQuickDoubly