问答详情
源自:6-1 练习题目

我这里到底咋啦啊

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]);
        }
    }
}


提问者:慕勒9658528 2018-12-11 23:46

个回答

  • __kirito33
    2018-12-13 09:44:44

    输出的,是中文输入。hh不知道对不对