请大佬解惑!
string[] name={"吴松","钱东宁","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] score=new int[]{89,90,98,56,60,91,93,85};
int max=score[0];
int k=0;
for(int i=0;i<score.Length;i++)
if(score[i]>max)
{
max=score[i];
k=i;
}
Console.Write("分数最高的是{0},分数是{1}",name[k],score[i]);
这个最后输出score[i]为啥就程序错误呢,我知道填max就可以,但是请问下大佬填了score[i]错误在哪里!