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

C#开发轻松入门

难度入门
时长 4小时43分
学习人数
综合评分9.40
833人评价 查看评价
9.5 内容实用
9.5 简洁易懂
9.2 逻辑清晰
class Program
{
static void Main(string[] args)
{
string[] names = new string [] { "关羽","张飞", "赵云", "马超", "黄忠" };
for (int y = 1; y < names.Length; y++)
{
Console.Write(names[y]);
}
}
}明明是对的却说我错的。。
using System;
using System.Collections.Generic;
using System.Text;

namespace Test
{
class Program
{
static void Main(string[] args)
{
/*
* 这是一段提示信息
*/
Console.WriteLine("积跬步,至千里");//打印并换行
}
}
}
Console.WriteLine():打印并换行;
Console.Write():打印
老师太萌啦
去掉注释换行那一行
for (int i = 1; i < 8; i++)
{
for (int j = 1; j < 8; j++)
{
if (i == j || i + j == 8)
Console.Write("0");
else
Console.Write(".");
}
Console.WriteLine();
}
无语啊!真的注释掉就可以通过啦
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);

}
Console.WriteLine();

}
Console.WriteLine(x+" ") 谁解释一下 。看不懂x+""
for (int x=1;x<=12 ;x++ )//请填写代码
{
Console.WriteLine(x+" ");
}
int x = 1;
int sum = 0;//和,初始化为0
while (x <= 30)//循环条件
{

sum += x;

x++;
}
Console.Write("1-30奇数的和:" + (sum - (5 * 3)) / 2);
int x = 1;
int sum = 0;//和,初始化为0
while (x <= 30)//循环条件
{
if (x%2!=0){//筛选条件
sum += x;
}
x++;
}
Console.Write("1-30奇数的和:"+sum);
int x;//循环计数变量
x=1;//行① 请填写计数变量的初始化语句


while ( x<6 )//行② 请填写循环条件
{
Console.Write("加油!");
//行③ 请填写计数变量的自加语句
x++;
}
百万年薪来啦,后面的跟上。。。
喜欢这个课程
int x = 1;
int sum = 0;//和,初始化为0
while (x <= 30)//循环条件
{
if (x%2!=0)//筛选条件
sum += x;
x++;
}
Console.Write("1-30奇数的和:"+sum);
课程须知
本课程是C#基础课程,热烈欢迎各位小伙伴拍砖吐槽!!
老师告诉你能学到什么?
1、C#的基本概念 2、Visual Studio的使用技巧 3、C#的语法和程序逻辑

微信扫码,参与3人拼团

微信客服

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

帮助反馈 APP下载

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

公众号

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

友情提示:

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

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消