哪里错了,怎么不能运行出来
using System;
using System.Collections.Generic;
using System.Text;
namespace projGetMaxScore
{
class Program
{
static void Main(string[] args)
{
string[] scores={89,80,98,56,60,91,93,85};
string[] names={吴松,钱东宇,伏晨,陈陆,周蕊,林日鹏,何昆,关欣};
int max=scores[0];
for(int i=0;i<8;i++)
if(max<scores[i])
max=scores[i];
{
Console.WriteLine(最高分数是"+names[i]+",分数是"+max");
}
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace projGetMaxScore
{
class Program
{
static void Main(string[] args)
{
string[] scores={89,80,98,56,60,91,93,85};
string[] names={吴松,钱东宇,伏晨,陈陆,周蕊,林日鹏,何昆,关欣};
int max=scores[0];
for(int i=0;i<8;i++)
if(max<scores[i])
max=scores[i];
{
Console.WriteLine(最高分数是"+names[i]+",分数是"+max");
}
}
}
}