MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/bitmasking/two_power.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#define endl '\n'
8
9int main(){
10 cin.tie(0)->sync_with_stdio(0);
11 int n;
12 cin>>n;
13 if((n &(n-1))==0){
14 cout<<"it is a power of two"<<endl;
15
16 }
17 else
18 cout<<"it is not"<<endl;
19 return 0;
20}
21
22

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected