# Java program convert decimal to binary

**Java program convert decimal to binary**

Decimal number system is a base 10 number system using digits for 0 to 9 whereas binary number system is base 2 and uses 0 and 1.

**Algorithm to convert Decimal to Binary number**

- Divide the decimal number by 2 and store the remainder
- Store the quotient back to the input number variable
- Repeat step 1 and 2 till quotient becomes zero.
- Binary number will be the remainders in above process in reverse order

**Example ** Continue reading