Write a Program in Java to input a number in Decimal number system and convert it into its equivalent number in the Octal number system.
Note: Octal Number system is a number system which can represent a number in any other number system in terms of digits ranging from 0 to 7 only. This number system consists of only eight basic digits i.e. 0, 1, 2, 3, 4, 5, 6 and 7.
For Example: 25 in the Decimal number system can be represented as 31 in the Octal number system.
No comments:
Post a Comment