#C7149. Decimal to Binary Conversion
Decimal to Binary Conversion
Decimal to Binary Conversion
Given a non-negative decimal number as a string, convert it to its binary representation with a prefix (0b). The binary representation is computed by repeatedly dividing the number by 2 and collecting the remainders. For example, the decimal number 10 converts to (0b1010), and 255 converts to (0b11111111). Your solution should read the input from standard input and write the result to standard output.
inputFormat
The input consists of a single line containing a non-negative integer represented as a string.
outputFormat
Output the binary representation of the given decimal number as a string with the prefix (0b).## sample
10
0b1010