public class jcbc2 {
public static void main(String[] args) {
int[] score = new int[10];
int max =0, min =100, sum =0;
double avg =0;
for (int i = 0; i < score.length; i++) {
score[i] = (int) (Math.random()*10 + 1);
sum = sum + score[i];
if (max <score[i])
max =score[i];
if (min >score[i])
min =score[i];
}
avg=sum/score.length;
System.out.println("最高分为 "+ max);
System.out.println("最低分为 "+ min);
System.out.println("平均值为"+ avg);
}
}