Design a program that inputs 10 integers into an array and adjusts the position of the 10 numbers in the array so that the largest one becomes the first element of the array and the smallest one becomes the last element of the array.
Brother, I am a newbie~~~~
How to write in descending order?
And how about writing only the swap of the largest number and the position of the array head and the smallest number and the position of the array end? First, thank you.