#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a<=b&&a<=c)
if(b<=c)
cout<<a<<"->"<<b<<"->"<<c<<endl;
else
cout<<a<<"->"<<c<<"->"<<b<<endl;
else if(a<=c)
cout<<b<<"->"<<a<<"->"<<c<<endl;
else if(a<=b)
cout<<c<<"->"<<a<<"->"<<b<<endl;
else if(b>=c)
cout<<c<<"->"<<b<<"->"<<a<<endl;
else
cout<<b<<"->"<<c<<"->"<<a<<endl;
return 0;
}
分支-07. 比较大小(10),布布扣,bubuko.com
原文地址:http://www.cnblogs.com/gnodidux/p/3819746.html