#include <iostream>
using namespace std;
int main()
{
int num1,num2,num3,max,min;
cout<<"please enter three number:"<<endl;
cin>>num1>>num2>>num3;
if(num1>num2)
{
max=num1;
min=num2;
}
else
{
max=num2;
min=num1;
}
if(num3<min)
cout<<num3<<" "<<min<<" "<<max<<endl;
if(num3>min && num3<max)
cout<<min<<" "<<num3<<" "<<max<<endl;
if(num3>max)
cout<<min<<" "<<max<<" "<<num3<<endl;
return 0;
}
using namespace std;
int main()
{
int num1,num2,num3,max,min;
cout<<"please enter three number:"<<endl;
cin>>num1>>num2>>num3;
if(num1>num2)
{
max=num1;
min=num2;
}
else
{
max=num2;
min=num1;
}
if(num3<min)
cout<<num3<<" "<<min<<" "<<max<<endl;
if(num3>min && num3<max)
cout<<min<<" "<<num3<<" "<<max<<endl;
if(num3>max)
cout<<min<<" "<<max<<" "<<num3<<endl;
return 0;
}