Home > Back-end >  The great god, and the solution.
The great god, and the solution.

Time:09-22

#include
20 # define N
Void main ()
{
Int n, j, a [n], I, t, maxi.
The scanf (" % d ", & amp; N);
for(i=0; i<=n - 1; I++)
{
The scanf (" % d ", & amp; A [I]);
}
for(i=1; i<=n - 1; I++)
{
For (j=I - 1; j<=n - 1; J++)
{
If (a [j] & gt; A [maxi])
{
Maxi=j;
}
}
T=a, [I - 1].
A [I - 1)=a, [maxi].
A [maxi]=t;
}
for(i=0; i<=n - 1; I++)
{
Printf (" % d \ t ", a [I]);
}
}

Perform to the end. Exe has stopped working
  • Related