• + 6 comments

    As I've learned from Google, a simple method to solve this problem is to extract and store the digits of the given number in an integer array and sort this array in descending order. After sorting the array, print the elements of the array. Now I'm only on the first course at university as a future developer and if I have any issues with such assignments, I always refer to this resource.