求解这哪里错了,显示运行成功,输出错误
string[]name=new string[8]{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] num=new int[]{89,90,98,56,60,91,93,85};
int max=num[0];
int index=0;
for(int x=1;x<num.Length;x++)
{
if(num[x]>max)
{
max=num[x];
index=x;
}
}
Console.Write("分数最高的是"+name [index]+","+"分数是"+max);
这哪错了啊?