最新回答 / 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