结果没错昂 为什么老说输出错误
using System;
namespace Test2
{
class Program
{
static void Main(string[] args)
{
string[] Name = new string[] { "景珍", "林惠洋", "成蓉", "洪南昌", "龙玉民", "单江开", "田武山", "王三明" };
int[] Score = new int[]{ 90, 65, 88, 70, 46, 81, 100, 68 };
int Sum=Score[0], Avg;
for (int i=1;i<Score.Length;i++) {
Sum += Score[i];
}
Avg = Sum / Score.Length;
Console.Write("平均分是{0},高于平均分的有:",Avg);
for (int i = 0; i <Score.Length; i++) {
if (Score[i] > Avg)
Console.Write(Name[i]+" ");
}
}
}
}