How to convert binary, OCT, HEX to calculate in Java?
- by user316751
Write an application that inputs one number consisting of FIVE digits from the user, separates the number into its individual digits and prints the digits separated from one another by three spaces each. For example, if the user types in the number 12345, the program should print
1 2 3 4 5
The following screen dump of result is for your reference.
Input a digit: 12345
Digits in 12345 = 1 2 3 4 5
How to convert binary, OCT, HEX to calculate the question?