#include<iostream>
using namespace std;
int main()
{ const int max=4;
int number[max],tmp,i,j,k,l;
cout<<"pls input the a,b,c,d int numbers"<<endl;
for(i=0;i<=max-1;i++) //输入要排序的四个数
cin>>number[i];
for(l=max-1;l>=0;l--) //每次冒泡少一位,不用对最高位再排序
{ for(j=0;j<=l;j++) //一个冒泡过程
{ if(number[j]>number[j+1])
{ tmp=number[j+1]; //把大数移到高位
number[j+1]=number[j];
number[j]=tmp;
}
}
}
for(k=0;k<=max-1;k++) //按顺序输出各个数
cout<<number[k]<<'/t';
cout<<endl;
return 0;
}