Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C language array programming, input n integers, output n numbers in descending order of absolute value.
C language array programming, input n integers, output n numbers in descending order of absolute value.
#include

intmain()

{

intn,I,j,t;

inta[ 1 1];

scanf("%d ",& n);

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

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

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

{

for(j = 0; j < n-I; j++)

{

if(a[j]