mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
349 B
349 B
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 .
$