Skip to content

Files

Latest commit

9987a3c · Mar 6, 2018

History

History

027-decimal-to-binary

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 6, 2018
Mar 6, 2018
Mar 6, 2018
Mar 6, 2018

Decimal To Binary

Challenge Description:

You are given a decimal (base 10) number, print its binary representation.

Input sample:

Your program should accept as its first argument a path to a filename containing decimal numbers greater or equal to 0, one per line.

Ignore all empty lines.

For example:

2
10
67

Output sample:

Print the binary representation, one per line.

For example:

10
1010
1000011