C语言 输入一组数进行排序 由大到小
#include <stdio.h> main(void) { int i,j,a[10],p=0,t=0,temp; printf("请输入原数组:\n"); for(j=0;j<10;j++) scanf("%d",&a[j]); temp=a[0]; for(j=0;j<9;j++) { t=j; temp=a[j]; for(i=j+1;i<10;i++) if(temp>a[i]) //这是由小到大排序 如果是大到小则改为...