...

/

Challenge: Convert Decimal Number to Binary

Challenge: Convert Decimal Number to Binary

Test your problem-solving skills in this difficult challenge.

Problem statement

You are given a decimal number. Your task is to convert it into a binary number. See the figure below:

To convert the decimal number into binary, we should keep dividing the number by 2 ...