Skip to content

Latest commit

 

History

History

027-decimal-to-binary

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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