packagecom.qfen.kz_test1;importjava.util.Scanner;publicclassTest1{publicstaticvoidmain(String[] args){// TODO Auto-generated method stub//11Scanner scanner =newScanner(System.in);int a = scanner.nextInt();int b = scanner.nextInt();int c = scanner.nextInt();int temp;if(a > b && a > c){if(b > c){//a最大 b第二
temp = a;
a = c;
c = temp;System.out.println("从小到大:"+ a +"<"+ b +"<"+ c);}else{//a最大 b最小 c第二
temp = a;
a = b;
b = c;
c = temp;System.out.println("从小到大:"+ a +"<"+ b +"<"+ c);}}elseif(b > a && b > c){if(a > c){//c a b
temp = b;
b = a;
a = c;
c = temp;System.out.println("从小到大:"+ a +"<"+ b +"<"+ c);}else{// a c b
temp = b;
b = c;
c = temp;System.out.println("从小到大:"+ a +"<"+ b +"<"+ c);}}elseif(c > b && c > a){if(b > a){//a b c System.out.println("从小到大:"+ a +"<"+ b +"<"+ c);}else{// b a c
temp = a;
a = b;
b = temp;System.out.println("从小到大:"+ a +"<"+ b +"<"+ c);}}}}