#include <stdio.h>
void main()
{
int a[6],i,j, t;
for (i = 0; i < 6; i++)
{
scanf("%d", &a[i]);
}
for (i = 0; i < 5; i++)
{
for (j = 0; j < 5 - i; j++)
{
if (a[j] > a[j + 1])
{
t = a[j];
a[j] = a[j + 1];
a[j + 1] = t;
}
}
}
for (i = 0; i < 6; i++)
{
printf("%d ", a[i]);
}
}
10-21
7391
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)