#include<stdio.h>
int main()
{
    int a,b,c,d,temp;
    printf("请输入要进行排序的四个数字:\n");
    scanf("%d%d%d%d",&a,&b,&c,&d);
    if(a>b)
    {
        temp=a;
        a=b;
        b=temp;
    }
    if(b>c)
    {
        temp=b;
        b=c;
        c=temp;
    }
    if(c>d)
    {
        temp=c;
        c=d;
        d=temp;
    }
    if(a>b)
    {
        temp=a;
        a=b;
        b=temp;
    
    }
    if(b>c)
    {
   
        temp=b;
        b=c;
        c=temp;
    }
    if(a>b)
    {
        temp=a;
        a=b;
        b=temp;
    
    }
    printf("排序后的顺序为:%5d%5d%5d%5d",a,b,c,d);
    return 0;
}