各位大神,C#开发轻松入门6-1 练习题目这样写行不?正确的是怎样的

using System;

using System.Collections.Generic;

using System.Text;


namespace projGetMaxScore

{

    class Program

    {

        static void Main(string[] args)

        {

        string[,] score ={{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"}, { 89,90,98,56,60,91,93,85}};

        bool hasNopass = false;

        for (int i = 0; i < score.Length; i++)

        {

            if(score[i]>98)

            {

                hasNopass=true;

            }

        }

        if(hasNopass)

        else

        Console.WriteLine("分数最高的是{0},分数是{1}",score[0,3],score[1,3]);

        }

    }

}


dxyz
浏览 1113回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP