测出的结果
using System;
using System.Collections.Generic;
using System.Text;
namespacehttps://www.imooc.com/code/9177#editor-tabs-csharp projGetMaxScore
{
class Program
{
static void Main(string[] args)
{
int i; int t=0;
string [] name=new string[]{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int [] score=new int[]{89,90,98,56,60,91,93,85};
for(i=0;i<score.Length;i++)
{
if(score[i]>score[t])
t=i;
}
Console.WriteLine("分数最高的是{0},"+"分数是{1}",name[t],score[t]);
}
}
}