programmer123456
September 25th, 2009, 07:01 PM
I'm new to java.. and i need help with this hw, it will be greatly appreciated.
Question - Write an application that takes a whole number consisting of 5 digits (declared as a variable) and displays the digits separated from one another by three spaces each. For example, the the user types in the number 12345, the application should display: 1 2 3 4 5. Hint: You will need to use both division and the modulus (remainder) operators to "pick off" each digit
If someone could help me out it would be great. thanks.
Question - Write an application that takes a whole number consisting of 5 digits (declared as a variable) and displays the digits separated from one another by three spaces each. For example, the the user types in the number 12345, the application should display: 1 2 3 4 5. Hint: You will need to use both division and the modulus (remainder) operators to "pick off" each digit
If someone could help me out it would be great. thanks.