新手只能写成这样了,不知道怎么用二维数组写?
static void Main(string[] args)
{
string [] names ={"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int [] score ={89,90,98,56,60,91,93,85};
int maxpeople = 0;
int maxscore = 0;
for(int i = 0 ;i<score.Length;i++){
if (score[i]>maxscore){
maxscore = score[i];
maxpeople = i;
}
}
Console.Write("分数最高的是"+names[maxpeople]+",分数是"+score[maxpeople]);
}