#include <stdio.h>
int main() {
int a[6];
for (int i = 0; i < 6; i++) scanf("%d", &a[i]);
for (int i = 0; i < 5; i++)
for (int j = 0; j < 5 - i; j++)
{
if (a[j] < a[j + 1]) { int t = a[j]; a[j] = a[j + 1]; a[j + 1] = t; }
}
for (int i = 0; i < 6; i++) printf("%d\n", a[i]);
return 0;
}
10-21
7368
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-12
841
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-31
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交