double x, y;
x = y = 2;//从右向左赋值,x、y的值都是2
x /= 0.5;
y %= 2;
Console.WriteLine(x-y);
x = y = 2;//从右向左赋值,x、y的值都是2
x /= 0.5;
y %= 2;
Console.WriteLine(x-y);
2018-01-26
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
if(x <= y){
Console.Write(x);
}
}
Console.WriteLine();//换行
}
{
for (int x = 1; x <= 7; x++)
{
if(x <= y){
Console.Write(x);
}
}
Console.WriteLine();//换行
}
2018-01-25
for (int x = 1; x < 10; x++)
{
if(x==3 || x==8){
continue;
}
//请添加代码,过滤3和8
Console.Write(x);
}
{
if(x==3 || x==8){
continue;
}
//请添加代码,过滤3和8
Console.Write(x);
}
2018-01-24
{
for (int x=1; x<=12; x++ )//请填写代码
{
Console.WriteLine(x+" ");
}
}
for (int x=1; x<=12; x++ )//请填写代码
{
Console.WriteLine(x+" ");
}
}
2018-01-24
{
int y = 5;
while (y>0)//请输入
{
Console.Write(y+" ");
y--;
//请输入
}
}
int y = 5;
while (y>0)//请输入
{
Console.Write(y+" ");
y--;
//请输入
}
}
2018-01-24
{
case "局长": Console.Write("发双黄月饼"); break;
case "处长": Console.Write("发蛋黄月饼"); break;
case "科长": Console.Write("发枣泥月饼"); break;
default : Console.Write("发五仁月饼"); break;
}
case "局长": Console.Write("发双黄月饼"); break;
case "处长": Console.Write("发蛋黄月饼"); break;
case "科长": Console.Write("发枣泥月饼"); break;
default : Console.Write("发五仁月饼"); break;
}
2018-01-24