晕掉,不知道哪里出了问题
static void Main(string[] args)
{
int[]score=new int[]{89,90,98,56,60,91,93,85};
string[]names=new string[]{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int max=score[0];
string name=names[0];
for(int i=0;i<score.Length;i++)
{
if(score[i]>max)
{
max=score[i];
name=names[i];
}
}
Console.Write("分数最高的是"+name+",分数是"+max);