Math, asked by Aksharasree8928, 1 year ago

how to arrange the digits of a number in ascending order without using array

Answers

Answered by levimiller2107
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