mirror of https://github.com/01-edu/public.git
exam exercise printbits
This commit is contained in:
parent
ff07e9bc79
commit
8717df9d9a
|
@ -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