A.
int[] scores = {90,80,70,89,100}; int sum=0; for(int i=1;i sum+=scores[i]; } System.out.println("数组元素和是:"+sum);
B.
int[] scores = {90,80,70,89,100}; int sum=0; for(int i=0;i<=score.length;i++){ sum+=score[i]; } System.out.println("数组元素和是:"+sum);
C.
int[] score = {90,80,70,89,100}; int sum=0; for(int i=1;i<=score.length;i++){ sum+=score[i]; } System.out.println("数组元素和是:"+sum);
D.
int[] scores = {90,80,70,89,100}; int sum=0; for(int score : scores){ sum+=score ; } System.out.println("数组元素和是:"+sum);