Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Define array element a[ 10] Input 10 plastic data from the keyboard, print out all elements in positive order, and output every five elements in the order from small to large.
Define array element a[ 10] Input 10 plastic data from the keyboard, print out all elements in positive order, and output every five elements in the order from small to large.
# include & ltstdio.h & gt

Master ()

{

int i,j,k,a[ 10];

for(I = 0; I< 10; i++)

scanf("%d ",& ampa[I]);

for(I = 0; I<9; i++)

for(j = I+ 1; j & lt 10; j++)

if(a[I]& gt; a[j])

{

k = a[I];

a[I]= a[j];

a[j]= k;

}

printf("%d ",a[0]);

for(I = 1; I< 10; i++)

If (i%5! =0)

printf("%d ",a[I]);

other

{

printf(" \ n ");

printf("%d ",a[I]);

}

Printf ("minimum value is %d", a [0]);

}