using System;using System.Collections.Generic;using System.Text;namespace projGetMaxScore{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? string[,] score ={{"吳松","錢東宇","伏晨","陳陸","周蕊","林日鵬","何昆","關(guān)欣"}, { 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("分?jǐn)?shù)最高的是{0},分?jǐn)?shù)是{1}",score[0,3],score[1,3]);? ? ? ? }? ? }}
- 0 回答
- 0 關(guān)注
- 1166 瀏覽
添加回答
舉報(bào)
0/150
提交
取消