//过滤5 6 7
for (int i=1;i<=10;i++)
{
if (i == 5 || i == 6 || i == 7)
continue;
Console.Write(i+" ");
}
for (int i=1;i<=10;i++)
{
if (i == 5 || i == 6 || i == 7)
continue;
Console.Write(i+" ");
}
2019-05-27
//按职位发月饼
string job ;
Console.Write("请输入职位:");
job = Console.ReadLine();
string job ;
Console.Write("请输入职位:");
job = Console.ReadLine();
2019-05-26
最新回答 / xl1090889691
string[,] s = { { "吴松", "89" }, { "钱东宇", "90" }, { "伏晨", "98" }, { "陈陆", "56" }, { "周蕊", "60" }, { "林日鹏", "91" }, { "钱东宇", "90" }, { "何昆", "93" }, { "关欣", "85" } }; int max = 0; for (int i = 2; i <s.Length / 2 ; i++) {...
2019-05-24
int x=1;
while (x<=5)
{
if (x % 2 == 0)
{
x++;
continue;
}
Console.Write(x + " ");
x++;
}
while (x<=5)
{
if (x % 2 == 0)
{
x++;
continue;
}
Console.Write(x + " ");
x++;
}
2019-05-12
int x=1;
do
{
if (x == 3 || x == 8)
{
x++;
continue;
}
Console.Write(x + " ");
x++;
}
while (x <= 9);
do
{
if (x == 3 || x == 8)
{
x++;
continue;
}
Console.Write(x + " ");
x++;
}
while (x <= 9);
2019-05-12
static void Main(string[] args)
{
int y = 5;
while (y<=5&&y>0)//请输入
{
Console.Write(y--+" ");
//请输入
}
}
{
int y = 5;
while (y<=5&&y>0)//请输入
{
Console.Write(y--+" ");
//请输入
}
}
2019-05-12
class Program
{
static void Main(string[] args)
{
int score = 92;//分数
if(score>95) //判断
{//分支1
Console.WriteLine("奖励一辆自行车");
}
else{
Console.WriteLine("去你妈的");
}
}
}
{
static void Main(string[] args)
{
int score = 92;//分数
if(score>95) //判断
{//分支1
Console.WriteLine("奖励一辆自行车");
}
else{
Console.WriteLine("去你妈的");
}
}
}
2019-05-11