最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

共享答案。。。

using System;

using System.Collections.Generic;

using System.Text;


namespace projGetMaxScore

{

? ? class Program

? ? {

? ? ? ? static void Main(string[] args)

? ? ? ? {

? ? ? ? ? ? string []names ={"吳松","錢東宇","伏晨","陳陸","周蕊","林日鵬","何昆","關(guān)欣"};

? ? ? ? ? ? int []score={89,90,98,56,60,91,93,85};

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

? ? ? ? ? ? {

? ? ? ? ? ? ? ? if(score[0]<score[i])

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? score[0]=score[i];

? ? ? ? ? ? ? ? ? ? names[0]=names[i];

? ? ? ? ? ? ? ? }

? ? ? ? ? ? }

? ? ? ? ? ? Console.WriteLine("分?jǐn)?shù)最高的是{0},分?jǐn)?shù)是{1}",names[0],score[0]);

? ? ? ? }

? ? }

}


正在回答

2 回答

using System;

using System.Collections.Generic;

using System.Text;


namespace projGetMaxScore

{

? ? class Program

? ? {

? ? ? ? static void Main(string[] args)

? ? ? ? {

? ? ? ? string[,]s={{"吳松","89"},{"錢東宇","90"},{"伏晨","98"},{"陳陸","56"},{"周蕊","60"},{"林日鵬","91"},{"何昆","93"},{"關(guān)欣","85"}}? ? ;

? ? ? ? ? ?for (int y = 0; y < s.GetLength(0)-1; y++)

? ? ? ? ? ? ? ? {??

? ? ? ? ? ? ? ? ?if (Convert.ToInt32(s[0, 1]) < Convert.ToInt32(s[y + 1, 1]))

? ? ? ? ? ? ? ? ? ?{

? ? ? ? ? ? ? ? ? ? ?s[0,1]=s[y+1,1];

? ? ? ? ? ? ? ? ? ? ?s[0,0]=s[y+1,0];

? ? ? ? ? ? ? ? ? ? // Console.WriteLine("{0},{1}", s[0,0],s[0,1]);

? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? ? ?}?

? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? }

? ? ? Console.WriteLine("分?jǐn)?shù)最高的是{0},分?jǐn)?shù)是{1}", s[0,0],s[0,1]);

? ? ? ? }

? ? }

}


0 回復(fù) 有任何疑惑可以回復(fù)我~

using System;

using System.Collections.Generic;

using System.Text;


namespace projAboveAvg

{

? ? class Program

? ? {

? ? ? ? static void Main(string[] args)

? ? ? ? {

? ? ? ? ? string[,]s ={{"景珍","90"},{"林惠洋","65"},{"成蓉","88"},{"洪南昌","70"},{"龍玉民","46"},{"單江開","81"},{"田武山","100"},{"王三明","68"}};??

? ? ? ? ? int agv=0;

? ? ? ? ? int sum=0;

? ? ? ? ? for(int x =0 ;x<s.GetLength(0);x++)

? ? ? ? ? ?{

? ? ? ? ? ? sum = sum + Convert.ToInt32(s[x, 1]);

? ? ? ? ? ?}

? ? ? ? ? ?agv=sum/s.GetLength(0);

? ? ? ? ? ?Console.WriteLine("平均分是"+agv+",高于平均分的有:");

? ? ? ? ? ? for(int y=0;y<s.GetLength(0)-1;y++)

? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? if(Convert.ToInt32(s[y,1])>agv)

? ? ? ? ? ? ? ? Console.Write("{0} ",s[y,0]);

? ? ? ? ? ? ??

? ? ? ? ? ? ? }

? ? ? ? ? ? ??

? ? ? ? }

? ? }

}


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消
C#開發(fā)輕松入門
  • 參與學(xué)習(xí)       256461    人
  • 解答問題       1528    個

本門課程是C#語言的入門教程,將帶你輕松入門.NET開發(fā)

進(jìn)入課程

共享答案。。。

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號