最新回答 / weixin_慕九州3115940
?{? ? ? ? ? ? int[] score = new int[] { 90, 65, 88, 70, 46, 81, 100, 68 };? ? ? ? ? ? string[] name = new string[] { "景珍", "林惠洋", "成蓉", "洪南昌", "龍玉民", "單江開", "田武山", "王三明" };? ? ? ? ? ? int sum = 0, avg = 0;? ? ? ? ? ? for (int i = 0; i< score.Length; i+...
2022-12-04
已采納回答 / 慕娘9088980
? ? ? ? ? ?int[]num=new int[]{89,90,98,56,60,91,93,85};? ? ? ? ? ? string[] xingming = new string[] {"吳松","錢東宇","伏晨","陳陸","周蕊","林日鵬","何昆","關欣"};? ? ? ? ? ?int max=num[0];? ? ? ? ? ?string name = xingming[0];? ? ? ? ??? ? ? ? ? ?for (int i=0;i<num.Lengt...
2021-09-17
已采納回答 / 和你熟
? for (int a = 0; a < 10; a++)? ? ? ? ? ? {? ? ? ? ? ? ? ? for (int b = 0; b < 10; b++)? ? ? ? ? ? ? ? {? ? ? ? ? ? ? ? ? ? if ((a != 0 && a != 9) && (b != 0 && b != 9))? ? ? ? ? ? ? ? ? ? ? ? Console.Write(' ');? ? ? ? ? ? ?...
2021-01-31
已采納回答 / 闊狗闊落
第一個for循環后面少了一個{,所以下面換行的語句就沒起到作用static void Main(string[] args)? {? ? ? ? ? ?for (int y = 1; y <= 3; y++){? ? ? ? ? ? ? ? for (int x = 1; x <= y+2; x++) {? ? ? ? ? ? ? ? ? ? Console.Write(x);? ? ? ? ? ? ? ? }? ? ? ? ? ? ? ? Console.WriteLine();? ? ? ...
2021-01-23
已采納回答 / KulooM
第二張圖score[i]=s的意思是把 s 的值賦給 score[i],所以無論怎么循環,s 的值是沒有變化的,一直是你開始定義的int s = score[0],也就是第一個數,89
2020-10-26
已采納回答 / 低調彡
if(salary>=price)? ? ? ? ? ? {? ? ? ? ? ? ? ? Console.WriteLine("這月工資夠買手機!");? ? ? ? ? ? }? ? ? ? ? ? else? ? ? ? ? ? {? ? ? ? ? ? ? ? Console.WriteLine("這月工資不夠買手機!");? ? ? ? ? ? }
2020-10-15
已采納回答 / qq_Azazel_dCMSTX
string[] job =new string[]{"經理","項目主管","技術總監","財務主管"};new string后面少了個”[]“
2020-08-29
已采納回答 / sgoku
bool關鍵字是System.Boolean的別名(實際上bool是基本值類型,Boolean是對象;bool是C#中的,Boolean是.net Framework中的。其實它們倆是一樣啦,沒什么差別的),用于生成變量存儲布爾值true、false。bool數據類型在內存中占1個字節。
2020-07-28