From f57ae92ab59a7c66c18d8ab884126327c37679f9 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Wed, 24 Apr 2019 17:22:27 +0100 Subject: [PATCH] formatted --- subjects/printbits.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/subjects/printbits.md b/subjects/printbits.md index 7feaa97e..f27dfaee 100644 --- a/subjects/printbits.md +++ b/subjects/printbits.md @@ -1,18 +1,19 @@ -# printbits -## Instructions +## printbits -Write a function that takes a byte, and prints it in binary WITHOUT A NEWLINE -AT THE END. +### Instructions -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 - func PrintBits(octe byte) { } - ``` -Example, if you pass 2 to PrintBits, it will print "00000010" \ No newline at end of file + +### Usage + +Example of output: + +If 2 is passed to the function PrintBits, it will print "00000010".