Write a Program in Java to input a number in Decimal number system and convert it into its equivalent number in the Binary number system.
Note: Binary Number system is a number system which can represent a number in any other number system in terms of 0 and 1 only. This number system consists of only two basic digits i.e. 0 and 1.
For Example: 25 in the Decimal number system can be represented as 11001 in the Binary number system.
No comments:
Post a Comment