为什么不能正常输出答案,求解
string []name=new string[]{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int []num=new int[]{89,90,98,56,60,91,93,85};
int k,max;
max=num[0];
k=0;
for(int i=0;i<num.Length;i++)
{
if(num[i]>max)
{
max=num[i];
k=i;
}
}
Console.Write("分数最高的是{0},分数是{1}",name[k],num[k]);