Challenge: Decimal to Binary Conversion
You need to find the decimal to binary conversion of the given number in this exercise.
We'll cover the following
Problem statement
-
An integer is passed as an argument to the
Decimal2Binary
function. The name of the integer ismyDecimalNumber
. -
Compute the binary of the number and return the binary to verify your code.
You need to compute binaries only for positive numbers.
Get hands-on with 1200+ tech skills courses.