Java program to convert Decimal Number to Binary Number
Java program to convert Decimal Number to Binary Number I was reading the first chapter of my class eleventh textbook. While reading the chapter, I came across a topic "Conversion of Decimal Number System to Binary Number System". In that chapter, I found the method of converting the decimal number to the binary number. Decimal number system means the number system which is base 10 or uses 10 digits. Like the one we use in maths with digits from 0 to 9. Binary Number system means the number system that uses the base 2 or only 2 digits. The number system of 0s and 1s are called Binary Number System, which is also the language of computers. In programming, 0 means off or false and 1 means true or on. The method for converting the decimal number to binary number is: First the number is divided by 2 and the remainder whether it is 0 or 1 is noted. The first remainder is called Least Significant Bit (LSB). Then the quotient of the number is again divided by 2 and the remainder is...