标签:
1 7 8 17 23 24 59 62 101
50
1
7
8
17
23
24
50
59
62
101
#include<stdio.h>
int
main()
{
int
a[10],i,t;
for
(i=0; i<10; i++)
scanf
(
"%d"
,&a[i]);
for
(i=9; i!=0; i--)
if
(a[i]<a[i-1])t=a[i-1],a[i-1]=a[i],a[i]=t;
for
(i=0;i<10;i++)
printf
(
"%d\n"
,a[i]);
return
0;
}
1026: C语言程序设计教程(第三版)课后习题7.4数组排序
标签:
原文地址:http://www.cnblogs.com/SSYYGAM/p/4211302.html