请问为什么这段代码执行不了?
为什么这串代码执行不了?目的是为了挑出最大值。
static void Main(string[] args)
{
int N=0;
int[]score={89,90,98,56,60,91,93,85};
string[]name={"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
for (int i=0;i<score.Length;i++)
if N<score[i]
{
N=i;
}
Console.WriteLine("分数最高的是{0},分数是{1}",name[N],score[N]);
}