using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
string [] name = new string[8] {"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] score=new int[8]{89,90,98,56,60,91,93,85};
int temp=0;
int x = 0;
for (int i = 1; i < score.Length; i++)
{
if (score[i] > temp)
{
temp = score[i];
x = i;
}
}
Console.Write("分数最高的是{0},分数是{1}",name[x],temp);
Console.WriteLine();
}
}
}
何方神圣
qq_对我而言可爱的你_04181735
一毛钱
相关分类