mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
297 B
20 lines
297 B
6 years ago
|
## printbits
|
||
6 years ago
|
|
||
6 years ago
|
### Instructions
|
||
6 years ago
|
|
||
6 years ago
|
Write a function that takes a byte, and prints it in binary value **without a newline at the end**.
|
||
6 years ago
|
|
||
6 years ago
|
### Expected function
|
||
6 years ago
|
|
||
|
```go
|
||
|
func PrintBits(octe byte) {
|
||
|
|
||
|
}
|
||
|
```
|
||
6 years ago
|
|
||
|
### Usage
|
||
|
|
||
|
Example of output:
|
||
|
|
||
|
If 2 is passed to the function PrintBits, it will print "00000010".
|