|
|
|
@ -4,11 +4,11 @@
|
|
|
|
|
|
|
|
|
|
Write a program that determines if a given number is a power of 2. |
|
|
|
|
|
|
|
|
|
This program must print `true` if the given number is a power of 2, otherwise it prints `false`. |
|
|
|
|
This program must print `true` if the given number is a power of 2, otherwise it has to print `false`. |
|
|
|
|
|
|
|
|
|
- If there is more than one or no argument the program should print nothing. |
|
|
|
|
|
|
|
|
|
- When there is only one argument, it will always be a positive valid int. |
|
|
|
|
- When there is only one argument, it will always be a positive valid `int`. |
|
|
|
|
|
|
|
|
|
### Usage : |
|
|
|
|
|
|
|
|
|