Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 610 Bytes

File metadata and controls

34 lines (29 loc) · 610 Bytes

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