exam exercise printbits

This commit is contained in:
Augusto 2019-04-19 11:12:03 +01:00 committed by Frenchris
parent ff07e9bc79
commit 8717df9d9a
1 changed files with 18 additions and 0 deletions

18
subjects/printbits.md Normal file
View File

@ -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"