Int main (void)
{
Int j, I, TMP;
Int a [5]={5,4,7,1,8};
for (j=0; j<4. J++)
{
Int min=j;
For (I=j + 1; i<4. I++)
{
If (a [I] {
TMP=min;
Min=I;
I=TMP.
}
}
}
for(j=0; j<4. J++)
{printf (" % d ", a [I]); }
}
The problem in where
CodePudding user response:
Fyi:# include & lt; stdio.h>
Int main (void)
{
Int j, I, TMP;
Int a [5]={5,4,7,1,8};
For (j=0; J & lt; 4. J++)
{
Int min=j;
For (I=j + 1; I & lt; 4. I++)
{
If (a [I] }
If (min!=j)
{
TMP=a/min;
A (min)=a, [j].
A [j]=TMP;
}
}
For (j=0; J & lt; 4. J++)
{
Printf (" % d ", a [j]);
}
}