static void Main(string[] args)
{string []names={"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int []grades=new int[]{89,90,98,56,60,91,93,85};
int i,j=0,max=0;
for(i=0;i<8;i++)
{if(grades[i]>max)
{ max=grades[i];
j=i; }}
Console.WriteLine("分数最高的是{0},分数是{1}",names[j],grades[j]);
}
{string []names={"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int []grades=new int[]{89,90,98,56,60,91,93,85};
int i,j=0,max=0;
for(i=0;i<8;i++)
{if(grades[i]>max)
{ max=grades[i];
j=i; }}
Console.WriteLine("分数最高的是{0},分数是{1}",names[j],grades[j]);
}