#include <iostream>
using namespace std;
int main()
{
int a[10],k=0;
for(int i=0;i<10;i++)
{
cin>>a[i];
}
int temp;
for(int i=0;i<10;i++)
{
for(int j=0;j<10;j++)
if(a[j]>a[j+1])
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
for(int i=0;i<10;i++)
cout<<a[i]<<' ';
return 0;
}
输入10个数,并用冒泡排序法排序