能输出题目要求的结果,但是为什么说我错了?
using System;
using System.Collections.Generic;
using System.Text;
namespace projGetMaxScore
{
class Program
{
static void Main(string[] args)
{ string[] a = { "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" };
int[] b = { 89, 90, 98, 56, 60, 91, 93, 85 };
int x = 0;
int y = 0;
for (int i = 0; i < b.Length; i++)
{
if (b[i] > x)
{
x = b[i];
y = i;
}
}
Console.WriteLine("分数最高的是" + a[y] + "," + "分数是" + x);
}
}
}