string[] job = new string[5];
job[0] = "关羽";
job[1] = "张飞";
job[2] = "赵云";
job[3] = "马超";
job[4] = "黄忠";
for (int i = 0; i < 5; i++)
{
Console.Write(job[i]+".");//打印职位
}
}
job[0] = "关羽";
job[1] = "张飞";
job[2] = "赵云";
job[3] = "马超";
job[4] = "黄忠";
for (int i = 0; i < 5; i++)
{
Console.Write(job[i]+".");//打印职位
}
}
for (int i = 1; i <= 8; i++){
for (int j = 1; j <= 8; j++){
if (i == j||i + j ==8){
Console.Write("O");
continue;
}
Console.Write(".");}
Console.WriteLine();}
for (int j = 1; j <= 8; j++){
if (i == j||i + j ==8){
Console.Write("O");
continue;
}
Console.Write(".");}
Console.WriteLine();}
for(int y=2;y<=8;y++){
for (int i = 1; i < y; i++) {
Console.Write(i);
}
Console.WriteLine();
for (int i = 1; i < y; i++) {
Console.Write(i);
}
Console.WriteLine();
2015-12-06
string[] job={"经理","项目主管","技术总监","财务主管"};
2015-12-06
static void Main(string[] args)
{
string[] job = new string[] { "经理", "项目主管", "技术总监", "财务主管" };
for (int i = 0; i < job.Length; i++)
{
Console.WriteLine(job[i]);//打印职位
}
}
}
}
{
string[] job = new string[] { "经理", "项目主管", "技术总监", "财务主管" };
for (int i = 0; i < job.Length; i++)
{
Console.WriteLine(job[i]);//打印职位
}
}
}
}
2015-12-05
if(salary>=price)//请在这里补充条件判断
{
Console.WriteLine ("这个月工资够买手机!");
}
else
{
Console.WriteLine ("这月工资不够买手机!");
}
{
Console.WriteLine ("这个月工资够买手机!");
}
else
{
Console.WriteLine ("这月工资不够买手机!");
}
正确答案:
static void Main(string[] args)
{
int age = 4;//年龄
if (age < 6||age > 60)
Console.WriteLine("请坐爱心座!");
else
Console.WriteLine("请坚持一下!");
}
static void Main(string[] args)
{
int age = 4;//年龄
if (age < 6||age > 60)
Console.WriteLine("请坐爱心座!");
else
Console.WriteLine("请坚持一下!");
}
2015-12-04
正确答案:
static void Main(string[] args)
{
Console.WriteLine(true || false);//输出True
Console.WriteLine(true && false);//输出False
Console.WriteLine(!false);//输出True
}
static void Main(string[] args)
{
Console.WriteLine(true || false);//输出True
Console.WriteLine(true && false);//输出False
Console.WriteLine(!false);//输出True
}
2015-12-04