输出的结果是对的啊,为什么一直过不了课程呢?
string[] name = new string[]
{ "景珍","林惠洋","成蓉","洪南昌","龙玉名","单江开","田武山","王三明"};
int[] score = new int[]
{ 90,65,80,70,46,81,100,68};
int max;
int sum;
sum = 0;
for (int x = 0; x < score.Length; x++)
sum += score[x];
max = (sum / score.Length);
Console.Write("平均分是" + max + ",高于平均分的有:");
for (int x = 0; x < score.Length; x++)
if (max < score[x])
Console.Write(name[x] + " ");