public static void sort(int a,int b,int c)
{
if (a > b) {
if (c > a) {
System.out.println(b + "," + a + "," + c);
} else if (c < b) {
System.out.println(c + "," + b + "," + a);
} else {
System.out.println(b+","+c+","+a);
}
// a<<b时
}else {
if(c<a){
System.out.println(c+","+a+","+b);
}else if(c>b){
System.out.println(a+","+b+","+c);
}else{
System.out.println(a+","+c+","+b);
}
}
}
--------------------- 本文来自 pxl20171799 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/pxl20171799/article/details/82860365?utm_source=copy