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

C#开发轻松入门

难度入门
时长 4小时43分
学习人数
综合评分9.40
833人评价 查看评价
9.5 内容实用
9.5 简洁易懂
9.2 逻辑清晰
L7X
string[] job = new string[4];
job [0]="经理";
job [1]="项目主管";
job [2]="技术总监";
job [3]="财务主管";

for (int i = 0; i < job.Length ; i++)
{
Console.Write(job[i]);//打印职位
}
L7X
for(int x=1;x<=5;x++)
{
if(x%2==0)
continue;//添加关键字break或continue
Console.Write(x);
}
L7X
for (int x = 1; x < 10; x++)
{
//请添加代码,过滤3和8
if(x==3||x==8)
{
continue;
}
Console.Write(x);

}
我已经通过了呀
L7X
for (int x=1;x<=6;x++)//请填写for循环结构
{
Console.WriteLine("Yeah!");
}
L7X
int x = 2;
do
{
x++;
Console.Write(x+" ");
}
while(x>2&&x<=4);
先输出x=2+1=3 , 判断3>2并且3<=4,true 循环x=3+1=4,判断4>2并且4<=4,循环输出x=4+1=5,判断false,结束
L7X
int x = 2;
do
{
x++;
Console.Write(x+" ");
}
while(x>2&&x<=4);
L7X
for (int x=1;x<13 ;x++ )//请填写代码
{
Console.WriteLine(x);
}
L7X
int x = 1;
int sum = 0;//和,初始化为0
while (x <= 30)//循环条件
{
if (x%2!=0)//筛选条件
sum += x;
x++;
}
Console.Write("1-30奇数的和:"+sum);
L7X
int y = 5;
while (y>0)//请输入
{
Console.Write(y--);

}
这你都能通过,无法直视你的双眸。下一节吧。
成功了,让编程来的更猛烈些吧。下一节吧。
int x = 5;
int y = 6;
if (x >= y){
if (x >= 5)
Console.WriteLine("5");
}else{
if (y >= 6)
Console.WriteLine("6");
else
Console.WriteLine("7");
}
注意 在这里 hasnopass=!hasNopass
课程须知
本课程是C#基础课程,热烈欢迎各位小伙伴拍砖吐槽!!
老师告诉你能学到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的语法和程序逻辑

微信扫码,参与3人拼团

微信客服

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

帮助反馈 APP下载

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

公众号

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

友情提示:

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

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消