int[] score = new int[] {89,39,100,51,94,65,70 };//分数
Console.Write("不及格的有:");
for (int i = 0; i < score.Length; i++)
{
if(score[i]<60)//筛选条件
Console.Write(score[i]+",");
}
Console.Write("不及格的有:");
for (int i = 0; i < score.Length; i++)
{
if(score[i]<60)//筛选条件
Console.Write(score[i]+",");
}
2017-05-16
string[] job = new string[4];
job [0]="经理";
job [1]="项目主管";
job [2]="技术总监";
job [3]="财务主管";
for (int i = 0; i < job.Length ; i++)
{
Console.Write(job[i]);//打印职位
}
job [0]="经理";
job [1]="项目主管";
job [2]="技术总监";
job [3]="财务主管";
for (int i = 0; i < job.Length ; i++)
{
Console.Write(job[i]);//打印职位
}
2017-05-16
for(int x=1;x<=5;x++)
{
if(x%2==0)
continue;//添加关键字break或continue
Console.Write(x);
}
{
if(x%2==0)
continue;//添加关键字break或continue
Console.Write(x);
}
2017-05-15
for (int x = 1; x < 10; x++)
{
//请添加代码,过滤3和8
if(x==3||x==8)
{
continue;
}
Console.Write(x);
}
我已经通过了呀
{
//请添加代码,过滤3和8
if(x==3||x==8)
{
continue;
}
Console.Write(x);
}
我已经通过了呀
2017-05-15