for (int i = 0; i < score.Length ; i++)
{
if( score[i] < 60 )//筛选条件
Console.Write(score[i]+",");
}
大家要注意是score数据组里面取的值进行做对比,而不是score进行比较。
{
if( score[i] < 60 )//筛选条件
Console.Write(score[i]+",");
}
大家要注意是score数据组里面取的值进行做对比,而不是score进行比较。
2018-11-28
for (int x = 1; x < 10; x++)
{
//请添加代码,过滤3和8
if(x == 3)
continue;
else if(x == 8)
continue;
Console.Write(x);
}
{
//请添加代码,过滤3和8
if(x == 3)
continue;
else if(x == 8)
continue;
Console.Write(x);
}
2018-11-28
for (int x=1; x<13; x++)//请填写代码
{
Console.WriteLine(x+" ");
}
{
Console.WriteLine(x+" ");
}
2018-11-27
最新回答 / qq_慕的地6528064
double[] y=new double[3];这句话,是初始化1个double类型的数组,这个数组里面有3个数,y[0],y[1],y[2],这3个,但是没有赋值,这3个都是空的,或者为0的
2018-11-22
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
2018-11-20
double x = 13.9, y = 24.4,avg;
double sum = x + y;
avg=sum/2;
Console.WriteLine(avg);
double sum = x + y;
avg=sum/2;
Console.WriteLine(avg);
2018-11-20