1
1 2 1
1 2 3 2 1
1 2 1
1
怎么做才能输出这个...
for (int i = 1; i <=3; i++)
{
for (int j = 1; j <= i; j++)
{
Console.Write(j + " ");
}
for (int k = i - 1; k >= 1; k--)
{
Console.Write(k + " ");
}
Console.WriteLine();
我已经做了这么多了..不要用太多for语句...