import java.util.Scanner;
public class AverageInput{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
System.out.print("请输入学生人数: ");
int length = scanner.nextInt();
float[] score = new float[length];
for(int i=0;i<score.length;i++){
System.out.printf("请输入学生%d分数:",i+1);
float input= scanner.nextFloat();
score[i]=input;
}
System.out.print("/n分数:");
float total=0;
for(int i=0;i<score.length;i++){
total=total+score[i];
System.out.print(score[i]+" ");
}
System.out.printf("/n平均: %.2f",total/score.length);
}