using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace test1{ class Program { static void Main(string[] args) { string[,] exam = new string[,] { { "吴松","89"}, { "钱东宇", "90" }, { "伏晨", "98" }, { "陈陆", "56" }, { "周蕊", "60" }, { "林日鹏", "91" }, { "何昆", "93" }, { "关欣", "85" } }; int max_i = 0, max = int.MinValue; for (int i = 0; i < exam.GetLength(0); i++) { if(Convert.ToInt32(exam[i,1]) > max) { max_i =i; max = Convert.ToInt32(exam[i, 1]); } } Console.Write("分数最高的是{0},分数是{1}",exam[max_i,0],exam[max_i,1]); } }}
目前暂无任何回答
- 0 回答
- 0 关注
- 1130 浏览
添加回答
举报
0/150
提交
取消