-It is a number which expressed in the base-2 numeral system,
-Binary numbers are 0 or 1.
- A number which expressed in the base-10 numeral system.
- Decimal number range is 0 to 9
Conversion of Decimal to binary number
Decimal number - 10
Its binary equivalent is 1010
Decimal number - 11
Its binary equivalent is 1011
-In this program, firstly we take input of decimal number then using 1st while loop, we break the decimal into binary bits and store those bit in list and in 2nd while loop, we traverse the list in reverse order and add to 'binary' variable and this variable have the binary equivalent of given number.