1.

Question 5Write a program in Java to accept a number. Using the digits of this number create thelargest possible number.For example if the number entered is 311409 then the largest possible number using itsdigits will be 943110.​

Answer»

ANSWER:

It's easy

Just extract each DIGIT ,keep it in a array and bubble sort the array

I'll ATTACH the SOLUTION



Discussion

No Comment Found