Problem 2¶
Give the binary representation of a non-zero positive
integer n
.
For example, for n == 14
, the program should output 0b1110
.
Please do not use bin(.)
built-in function.
Functions:
|
Represent |
Give the binary representation of a non-zero positive
integer n
.
For example, for n == 14
, the program should output 0b1110
.
Please do not use bin(.)
built-in function.
Functions:
|
Represent |