import java.util.Arrays;
import java.util.Scanner;
public class Demo16 {
public static void main(String[] args) {
int [] scores =new int[5];
Scanner scanner =new Scanner(System.in);
for (int i =0 ; i < scores.length ; i ++) {
System.out.println("请输入第" + (i +1) +"个值:");
scores[i] = scanner.nextInt();
}
Arrays.sort(scores);
for (int i =0 ; i < scores.length ; i ++) {
System.out.println(scores[i] +"\t");
}
}
}