# define N 10
Int main ()
{
Int n, I, j, a [n], k, t, xb, Max.
For (n=0; N<=N - 1; N++)
{
The scanf (" % d ", & amp; A [n]);
}//input ten number
for(i=0; i
Max=a, [0]. Xb=0;//set the array first number for the biggest began to compare
for(j=0; j<=N - 1 - I; J++)
If (max{
Max=a, [j].
Xb=j;
}
T=a/N - 1 - I;//an array maximum and the final data exchange
A -i] [N - 1=a (xb);
A [xb]=t;
}
for(i=0; i
return 0;
}
CodePudding user response:
What is the problem? What to ask?CodePudding user response:
I guess he want you to help him debugging,CodePudding user response: