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

C#开发轻松入门

难度入门
时长 4小时43分
学习人数
综合评分9.40
833人评价 查看评价
9.5 内容实用
9.5 简洁易懂
9.2 逻辑清晰
Console.WriteLine(2/0.5);这个结果是4不是4.0
输入法要坑死我了。。。
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
if(x<=y)
Console.Write(x);
}
Console.WriteLine();//换行
}
namespace Test
{
class Program
{
static void Main(string[] args)
{
for(int x=1;x<=5;x++)
{
if(x%2==0)
//添加关键字break或continue
Console.Write(x);
}
}
}
}
for (int x = 1; x <= 7; x++)
{for (int y = 1; y <= 7; y++)
{
if (x == y || x + y ==8) Console.Write("O");
else Console.Write(".");
}
Console.WriteLine();
}
//请在这里完善代码
string[] names=new string[]{"关羽","张飞","赵云","马超","黄忠"};
for(int x=0;x<names.Length;x++)
{
Console.Write(names[x]+",");
}
}
}
}
连换行都不给,小编真严格。
选main方法这个没法选和提交
我去,坑啊,在0和o上浪费好多时间啊
不知道为啥这一章我也能只能做第一题
表示这题我选不了答案......
double x,y;
x=y=2;
x/=2;
y&=2;
Console.WriteLine(x-y);

double x,y;
x=y=2;
x/=2;
y-=2;
Console.WriteLine(x-y);
for (int x = 0; x < 7; x++)
{
for (int y = 0; y < 7; y++)
{
if(x==y||x+y==6)
Console.Write("o");
else
Console.Write(".");
}
Console.WriteLine();
有没有人给b赋值4的?
string today;//今天的午饭
string tomorrow;//明天的午饭
string temp;

today = "鱼香肉丝";
tomorrow = "小鸡炖蘑菇";
//请在这里补充代码,实现变量today和tomorrow的交换

temp=today;
today=tomorrow;
tomorrow=temp;
课程须知
本课程是C#基础课程,热烈欢迎各位小伙伴拍砖吐槽!!
老师告诉你能学到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的语法和程序逻辑

微信扫码,参与3人拼团

微信客服

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

帮助反馈 APP下载

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

公众号

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

友情提示:

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

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消