namespace Test
{
class Program
{
static void Main(string[] args)
{
for (int x = 1; x < 10; x++)
{
if(x==3||x==8) //请添加代码,过滤3和8
continue;
Console.Write(x);
}
}
}
}
{
class Program
{
static void Main(string[] args)
{
for (int x = 1; x < 10; x++)
{
if(x==3||x==8) //请添加代码,过滤3和8
continue;
Console.Write(x);
}
}
}
}
2016-03-21
int[] score = { 85,76,98,100,62,60};//分数
for (int i = 0; i < score.Length; i++)
{
if (score[i] < 60)//如果有不及格的
{
Console.WriteLine("有人不及格");
break;
}
}
Console.WriteLine("都及格啦!");
for (int i = 0; i < score.Length; i++)
{
if (score[i] < 60)//如果有不及格的
{
Console.WriteLine("有人不及格");
break;
}
}
Console.WriteLine("都及格啦!");
2016-03-21
已采纳回答 / qq_拉莫斯_0
using System;using System.Collections.Generic;using System.Text;namespace Test{ class Program { static void Main(string[] args) { double salary = 6000.00;//基本工资 double prize = 3200.00;//奖金 double tax = ...
2016-03-18
for (int n = 0; n < 7; n++)
{
for (int i = 0; i < 7; i++)
{
string text = i == n || i == 6-n ? "O" : ".";
Console.Write(text);
}
Console.WriteLine();
}
{
for (int i = 0; i < 7; i++)
{
string text = i == n || i == 6-n ? "O" : ".";
Console.Write(text);
}
Console.WriteLine();
}