#include <stdio.h>
#include <math.h>
int main()
{
int a[8] = { 24,19,32,43,38,6,13,22 };
int temp = 0;
for(int i=0;i<8;i++)
{
for(int j=0;j<8;j++)
{
if(a[i]<a[j])
{
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
}
for(int i=0;i<8;i++)
{
printf("%d ,",a[i]);
}
}
谢谢十分感谢能写出中间过程吗谢谢就是排序冒泡的过程