import java.util.Scanner;

public class Numberpai {

public static void main (String []ages){ Scanner a=new Scanner(System.in); int [] q=new int[3]; System.out.print(" Please enter "+"\t"); for(int i=0; i<3; i++){ q [i]=a.nextInt(); } for(int i=0; i<q.length; i++){ for(int j=i+1; j<q.length; j++){ if(q[i]<q[j]){ int c=q[i]; q[i]=q[j]; q[j]=c; } } } for (int i=0; i<3; i++){ System.out.print(q[i]+"\t"); }}Copy the code

}