From 8717df9d9ad12781d1d52e15f1d510f4b1ecd70e Mon Sep 17 00:00:00 2001 From: Augusto Date: Fri, 19 Apr 2019 11:12:03 +0100 Subject: [PATCH] exam exercise printbits --- subjects/printbits.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 subjects/printbits.md diff --git a/subjects/printbits.md b/subjects/printbits.md new file mode 100644 index 00000000..7feaa97e --- /dev/null +++ b/subjects/printbits.md @@ -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" \ No newline at end of file