文章详情
时间:2010-08-03 来源:chengxiaopeng
#include <stdio.h> int main(int argc, int *argv[]) { int a[10] = {3,13,43,56,76,24,87,98,79,54}; int i,j,k; for (i = 0 ;i < 9; i++) { for (j = 0; j < 9 - i; j++) { if (a[j] < a[j+1]) { k = a[j]; a[j] = a[j+1]; a[j+1] = k; } } } for(i = 0; i < 10; i++) { printf("%d ",a[i]); } system("pause"); return 0; }
辰域智控app
网医联盟app
汇丰汇选App
1970-01-01