Introduction - If you have any usage issues, please Google them yourself
Sorting by selection method
In this example, an integer array and two integer variables are declared, in which an integer array is used to store the numbers entered by the user.
Integer variables are used to store the numeric value of the smallest array element and the location of the element, and then the selection is sorted by a two-level loop,
Finally sorted out the array output.