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.

22 lines
350 B

6 years ago
## printbits
6 years ago
### 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 :
```console
$ go run . 1
00000001$
$ go run . 192
11000000$
$ go run . a
00000000$
$ go run . 1 1
$ go run .
$
5 years ago
```