![](https://img.haomeiwen.com/i8617976/33c1d1750012e0c9.png)
![](https://img.haomeiwen.com/i8617976/29a3449909ae175f.png)
int[,] a = new int[4, 4];
for (int i = 0; i < a.GetLength(0); i++)
{
for (int j = 0; j < a.GetLength(1); j++)
{
if (i <= j)
{
Console.Write(0 + "\t");
}
else
{
Console.Write(a.GetLength(0) * i + j + "\t");
}
}
Console.WriteLine();
}
网友评论