mirror of https://github.com/01-edu/public.git
Augusto
6 years ago
committed by
Frenchris
1 changed files with 18 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||||||
|
# printbits |
||||||
|
## Instructions |
||||||
|
|
||||||
|
Write a function that takes a byte, and prints it in binary WITHOUT A NEWLINE |
||||||
|
AT THE END. |
||||||
|
|
||||||
|
The function must have the next signature. |
||||||
|
|
||||||
|
## Expected function |
||||||
|
|
||||||
|
```go |
||||||
|
|
||||||
|
func PrintBits(octe byte) { |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
``` |
||||||
|
Example, if you pass 2 to PrintBits, it will print "00000010" |
Loading…
Reference in new issue