how to arrange the digits of a number in ascending order without using array
Answers
Answered by
0
Input: 451467
Output: 144567
I have already figured out how to get each digit of the integer with modulus division:
int number = 4214; while (number > 0) { IO.println(number % 10); number = number / 10; }Similar questions
Physics,
7 months ago
India Languages,
7 months ago
Science,
7 months ago
Science,
1 year ago
English,
1 year ago