慕勒9658528
2018-12-11 23:46
using System;
using System.Collections.Generic;
using System.Text;
namespace projGetMaxScore
{
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 max = 0;
for (int a = 0; a < score.Length; a++)
{
if (score[max] < score[a])
{
max = a;
}
}
Console.WriteLine("分数最高的是"+name[max]+","+"分数是"+score[max]);
}
}
}
输出的,是中文输入。hh不知道对不对
C#开发轻松入门
254118 学习 · 1459 问题
相似问题