#include "stdio.h"#define N 10void main(){ int i,j,k,a[N]={ 1,3,2,5,4,8,9,7,6,10 }; for ( i=0;i for ( j=N-1;j>i;j-- ) //j的取值9~(i+1) if ( a[j-1] for ( i=0;i}