为了账号安全,请及时绑定邮箱和手机立即绑定

C#开发轻松入门

难度入门
时长 4小时43分
学习人数
综合评分9.40
833人评价 查看评价
9.5 内容实用
9.5 简洁易懂
9.2 逻辑清晰
优点炸麦哦
这里的题都不检测过程,直接输出答案居然也能对。

已采纳回答 / qq_涉猎鸢_03255377
for (int y = 1; y <= 7; y++) {     for (int x = 1; x <= 7; x++)  {                  //这里把x <= 7换成x <= y                  Console.Write(x);                    if(x==y)                    break;                }                      //然后这里去掉brea...

最赞回答 / 年年ice有余
if(x=y)错了 这里是要xy相等吧,  应该是if(x==y)
string[] names=new string[]{&quot;吴松&quot;,&quot;钱东宇&quot;,&quot;伏晨&quot;,&quot;陈赫&quot;,&quot;周蕊&quot;,&quot;林日鹏&quot;,&quot;何昆&quot;,&quot;关欣&quot;};
int[] scores=new int[]{29,90,98,56,60,91,93,85};
int index=0;
int score=scores[0];
for(int i=0;i&lt;scores.Length;i++){ if(scores[i]&gt;score){ score=scores[i];index=i;}}
Console.Write(&quot;分数最高的是&quot; + names[index] + &quot;,分数是&quot; + score);
Console.WriteLine(&quot;{0}{1}{2}&quot;,ch[1,1],ch[1,2],ch[2,0]);我没懂
题目判定有错@慕女神
Console.WriteLine(NAME+&quot;出生在&quot;+CITY+&quot;的一个工人家庭&quot;);//使用常量
for(int i = 0; i &lt;7; i++)
{
for(int x = 7; x &gt; 0; x--)
if(x == 7-i|| x == i+1)?Console.Write(&#039;0&#039;);Console.Write(&#039;.&#039;);
Console.WriteLine();
int[] score = new int[] {29,90,98,98,60,91,93,85 };
string[] name = new string[] { &quot;吴松&quot;, &quot;钱东宇&quot;, &quot;伏晨&quot;, &quot;陈陆&quot;, &quot;周蕊&quot;, &quot;林日鹏&quot;, &quot;何昆&quot;, &quot;关欣&quot; };int max=0;string maxname = &quot;&quot;;for (int i = 0; i &lt; 8;i++ ){if (max &lt; score[i]){max=score[i];maxname= name[i];
}
}
Console.Write(&quot;分数最高的是{0},分数是{1},&quot;, maxname, max);
这是教幼儿园吧....
一点声音都听不到
唉,每次一写if和else if就自动代入到python里了,习惯不加括号直接写循环条件,还想在后面加个冒号?
static void Main(string[] args){ int max = 0;int j=0; string[,] chengji={{&quot;吴松&quot;,&quot;89&quot;},{&quot;钱东宇&quot;,&quot;90&quot;},...}};max = int.Parse(chengji[0,1]);
for(int i = 0;i &lt; 7;i++){ if(int.Parse(chengji[i,1])&gt;max){max = int.Parse(chengji[i,1]);j=i;}
}Console.Write(&quot;分数最高的是&quot;+chengji[j,0]+&quot;,成绩是&quot;+chengji[j,1]);
}
课程须知
本课程是C#基础课程,热烈欢迎各位小伙伴拍砖吐槽!!
老师告诉你能学到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的语法和程序逻辑

微信扫码,参与3人拼团

微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消