#include <iostream>
using namespace std;
void paixu(int&,int&,int&);
void main()
{
int a,b,c;
cin>>a>>b>>c;
paixu(a,b,c);
cout<<a<<" "<<b<<" "<<c<<endl;
}
void paixu(int &a,int &b,int &c)
{
int t;
if(a>b)
{
t=a;a=b;b=t;
}
if(b>c)
{
t=b;b=c;c=t;
}
if(a>b)
{
t=a;a=b;b=t;
}
}
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請
點(diǎn)擊舉報。