public/subjects/printbits
Chris 9f8edb5dd2 Typos correction and grammar improvements 2021-06-22 03:52:33 +01:00
..
README.md Typos correction and grammar improvements 2021-06-22 03:52:33 +01:00

README.md

printbits

Instructions

Write a program that takes a number as argument, and prints it in binary value without a newline at the end.

  • If the the argument is not a number, the program should print 00000000.

Usage :

$ go run . 1
00000001$
$ go run . 192
11000000$
$ go run . a
00000000$
$ go run . 1 1
$ go run .
$