#include<iostream>
#include<iomanip>
using namespace std;
void sqo(int &a, int &b, int &c);

int main(void){
    int a, b, c;
    cout<<"请输入三个整数"<<endl;
B:
    cout<<"a=";cin>>a;
    cout<<"b=";cin>>b;
    cout<<"c=";cin>>c;
if(a%1!=0)
{
    cout<<"a输入错误"<<endl;
    goto B;
}
if(b%1!=0){
    cout<<"b输入错误"<<endl;
    goto B;
}
    if(c%1!=0){
    cout<<"c输入错误"<<endl;
    goto B;
    }
    sqo(a,b,c);
    cout<<"按从小到大排列为:"<<endl;
    cout<<setiosflags(ios::left)<<setw(5)<<a<<setw(5)<<b<<setw(5)<<c<<endl;
    return 0;
}

void sqo(int &a, int &b, int &c){
    int temp;
    a>b? (b>c? (temp=c,c=a,a=temp):(a>c? (temp=a,a=b,b=c,c=temp):(temp=b,b=a,a=temp))):a>c? (temp=c,c=b,b=a,a=temp):(b>c?(temp=b,b=c,c=temp):(a=2*a/2));
}