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

C#开发轻松入门

难度入门
时长 4小时43分
学习人数
综合评分9.40
833人评价 查看评价
9.5 内容实用
9.5 简洁易懂
9.2 逻辑清晰
做半天题终于听到声音了;
Console.WriteLine("{0}{1}{2}",ch[1,1],ch[1,2],ch[2,0]);

最新回答 / qq_扮演你的配角_04199373
再来一遍,你就可以看到你编写的程序源文件的保存位置了。
foreach(string x in t)
int[] score = new int[] {89,39,100,51,94,65,70 };//分数
Console.Write("不及格的有:");
for (int i = 0; i <score.Length; i++)
{
if(score[i]<60)//筛选条件
Console.Write(score[i]+",");
}
int x = 2;
do
{
x++;
Console.Write(x+" ");
}
while(x>1&&x<=4);
}
}
if(money<10000){
if(money>=100000){
Console.LineWrite("送一台微波炉");
}else if(mobey<100000&&mobey>=50000){
Console.LineWrite("送一套茶具");
}else{
Console.LineWrite("送一袋大米");
}
}else
Console.LineWrite("没有礼品");
class Program
{
static void Main(string[] args)
{
Console.WriteLine(true);//输出True
Console.WriteLine( false);//输出False
Console.WriteLine(true);//输出True
}
}
}
string boy = "秀丽";//男孩名字
string girl = "伟强";//女孩名字
string temp;//中间变量
tepm=boy;//把男孩的名字赋值给temp
boy=girl;//把女孩的名字赋值给男孩
girl=tepm;//把temp中的名字赋值给女孩
Console.WriteLine("男孩叫"+boy+" 女孩叫"+girl);
扯淡

已采纳回答 / Hardy
第一步:点击Attach右边的下三角第二步:点击配置管理器第三步:<...图片...><...图片...><...图片...><...图片...>
if (x&gt;=y)
{
if(x&gt;=5)
Console.WriteLine (&quot;5&quot;)
}
感觉这像是在说
bool x&gt;=y&amp;&amp;x&gt;=5
Console.WriteLine (&quot;5&quot;)
string[] name=new string[]{&quot;吴松&quot;,&quot;};
int[] score=new int[]{&quot;89&quot;,&quot;90&quot;,&quot;98&quot;,&quot;56&quot;,&quot;60&quot;,&quot;91&quot;,&quot;93&quot;,&quot;85&quot;};
int index=0; int max=score[0]; for(int i=0;i&lt;score.Length;i++) { if(score[i]&gt;max) max=score[i]; index=i;} Console.Write(&quot;分数最高的是{0},数是{1}&quot;,name[index],score[index]);

已采纳回答 / Tracer丶4298853
就是要练习才能记住知识,看理论的不练习很难记下来
不对的检查一下符号,你可能把中文分号输进去了!
课程须知
本课程是C#基础课程,热烈欢迎各位小伙伴拍砖吐槽!!
老师告诉你能学到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的语法和程序逻辑

微信扫码,参与3人拼团

微信客服

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

帮助反馈 APP下载

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

公众号

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

友情提示:

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

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消