
#include
using namespace std;
void main()
{
int num;
cout<<"input the data:"<
if(num<1000||num>饥模9999)
do{
cout<者肢兄<"input wrong,try again!"<
}while(num<1000||num>9999);
int temp=num,a[4],i=0;
cout<<"the reverse sorted is:"<
{
a[i]=temp%10;
temp/=10;
cout< }
cout<
for(int j=i+1;j<4;j++)
{
if(a[i]>首袭a[j])
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
cout<<"the maximum number which build by the "<
cout< cout<
cout< cout<
}