int m,temp; temp = score[0]; m = 0; int[] score = { 89, 90,... };string[] names = { "吴松", "钱东宇"... };
for (int i=0; i<score.Length; i++)
{ if (temp < score[i]){temp = score[i]; m = i; }else temp=score[m]; } Console.Write("分数最高的是{0},分数是{1}",score[m], score[m]);
for (int i=0; i<score.Length; i++)
{ if (temp < score[i]){temp = score[i]; m = i; }else temp=score[m]; } Console.Write("分数最高的是{0},分数是{1}",score[m], score[m]);