为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

C#
dxyz 2016-05-14 02:33:57
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]);        }    }}
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 1111 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信