namespace Test
{
for (int y = 1; y <= 7; y--)
{
for (int x = 1; x <= 7; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
{
for (int y = 1; y <= 7; y--)
{
for (int x = 1; x <= 7; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
2017-06-01
for(int x=-3;x<=3;x++)
{
for(int y=-3;y<=3;y++)
{
if(Math.Abs(x)==Math.Abs(y))
Console.Write('O');
else
Console.Write('.');
}
Console.WriteLine();
}
大写字母O,太坑了,不是数字0
{
for(int y=-3;y<=3;y++)
{
if(Math.Abs(x)==Math.Abs(y))
Console.Write('O');
else
Console.Write('.');
}
Console.WriteLine();
}
大写字母O,太坑了,不是数字0