public static void main(String[] args) {
int[] ins = new int[20];
int tmp;
Scanner sc = new Scanner(System.in);
for (int i = 0; i < ins.length; i++) {
System.out.print("输入第"+(i+1)+"个数:");
ins[i] = sc.nextInt();
}
for (int i = 0; i < ins.length; i++) {
for (int j = i + 1; j < ins.length; j++) {
if(ins[i] < ins[j]){
tmp = ins[j];
ins[j] = ins[i];
ins[i] = tmp;
}
}
}
for (int i = 0; i < ins.length; i++) {
System.out.println(ins[i]);
}
}