forked from root/public
1 changed files with 10 additions and 9 deletions
@ -1,18 +1,19 @@ |
|||||||
# printbits |
## printbits |
||||||
## Instructions |
|
||||||
|
|
||||||
Write a function that takes a byte, and prints it in binary WITHOUT A NEWLINE |
### Instructions |
||||||
AT THE END. |
|
||||||
|
|
||||||
The function must have the next signature. |
Write a function that takes a byte, and prints it in binary value **without a newline at the end**. |
||||||
|
|
||||||
## Expected function |
### Expected function |
||||||
|
|
||||||
```go |
```go |
||||||
|
|
||||||
func PrintBits(octe byte) { |
func PrintBits(octe byte) { |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
``` |
``` |
||||||
Example, if you pass 2 to PrintBits, it will print "00000010" |
|
||||||
|
### Usage |
||||||
|
|
||||||
|
Example of output: |
||||||
|
|
||||||
|
If 2 is passed to the function PrintBits, it will print "00000010". |
||||||
|
Loading…
Reference in new issue