Console.WriteLine("{0}{1}{2}",ch[1,1],ch[1,2],ch[2,0]);
2018-01-17
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]+",");
}
2018-01-17
string[] job = new string[]{"经理","项目主管","技术总监","财务主管"};
for (int i = 0; i < job.Length ; i++)
{
Console.Write(job[i]);//打印职位
}
for (int i = 0; i < job.Length ; i++)
{
Console.Write(job[i]);//打印职位
}
2018-01-17
最新回答 / qq_慕勒8428175
没有判断num[i]%2的值,非要取反的话,可以这么写 if(!(num[i] % 2 !=0)) ,那不如直接写成if(num[i] % 2 ==0)
2018-01-17