原来倒三角也能过哈哈哈
for (int y = 1; y <= 7; y++)
{
for (int x = y; x <= 7; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
for (int y = 1; y <= 7; y++)
{
for (int x = y; x <= 7; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
2022-03-13
我这样写的
for (int x=0;x<=6;x++)
{
for(int y=0;y<=6;y++)
{
if (y==x||y==6-x)
Console.Write('o');
else
Console.Write('.');
}
Console.WriteLine();
for (int x=0;x<=6;x++)
{
for(int y=0;y<=6;y++)
{
if (y==x||y==6-x)
Console.Write('o');
else
Console.Write('.');
}
Console.WriteLine();
最赞回答 / weixin_慕用1585074
name.Length是这个二维数组的长度,它的值是16.正确答案 for (int i = 1; i < name.GetLength(0); i++)
2021-12-16