is power of 2 exam exercise

This commit is contained in:
Augusto 2019-04-19 12:32:43 +01:00 committed by Frenchris
parent d0f8c768bf
commit bb4fcea446
1 changed files with 19 additions and 0 deletions

19
subjects/ispowerof2.md Normal file
View File

@ -0,0 +1,19 @@
# ispowerof2
## Instructions
Write a function that determines if a given number is a power of 2.
This function returns true if the given number is a power of 2, otherwise it returns false.
Your function must be declare as follows:
## Expected function
```go
func Ispowerof2(n uint) bool {
}
```