最新回答 / weixin_慕先生0093861
Console.Write("平均分是{0},高于平均分的有:",avg) Writer后要加Line,进行换行,输出格式才能与标准答案一致!
2024-02-01
最新回答 / 星舟
using System;using System.Collections.Generic;using System.Text;namespace projAboveAvg{ class Program { static void Main(string[] args) { string[,]arr={{"景珍","90"},{"林慧洋","65"},{"成蓉","88"},{"洪南昌","70"},{"龙玉民","46"},{"单江开","8...
2024-02-01
Console.WriteLine(true|| false);//输出True 逻辑或||一真一假输出真
Console.WriteLine(true&& false);//输出False逻辑与&&一真一假输出假
Console.WriteLine(!false);//输出True 逻辑非! 取反
Console.WriteLine(true&& false);//输出False逻辑与&&一真一假输出假
Console.WriteLine(!false);//输出True 逻辑非! 取反
2023-10-15
最新回答 / qq_半城浮华_0
using System;using System.Collections.Generic;using System.Text;namespace projAboveAvg{ class Program { static void Main(string[] args) { int avg = 0; int sum = 0; int[] scores=new int[8]{90,65,88,70,46...
2023-07-23
string[,] t={{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"},{"89","90","98","56","60","91","93","85"}};
int b=0,c=0;
for(int a=0;a<t.GetLongLength(1);a++){
if(Convert.ToInt32(t[1,a])>c){c=Convert.ToInt32(t[1,a]);
b=a;}}
Console.Write("分数最高的是{0},分数是{1}",t[0,b],t[1,b]);
int b=0,c=0;
for(int a=0;a<t.GetLongLength(1);a++){
if(Convert.ToInt32(t[1,a])>c){c=Convert.ToInt32(t[1,a]);
b=a;}}
Console.Write("分数最高的是{0},分数是{1}",t[0,b],t[1,b]);