不会写
static void Main(string[] args)
{
for (int y = 1; y <= 7; y++)
for (int x = 1; x <= y; x++)
Console.Write(x);
}
Console.WriteLine();
?把内循环的7改为外循环的y就行了,还是看不懂代码?