有比这简单的方法吗?
for (int y = 1; y <= 1; y++)
{
for (int f = 1; f<= 1; f++)
{
Console.Write(f);
}
Console.WriteLine();//换行
for (int e = 1; e<= 2; e++)
{
Console.Write(e);
}
Console.WriteLine();//换行
for (int d = 1; d<= 3; d++)
{
Console.Write(d);
}
Console.WriteLine();//换行
for (int c = 1; c <= 4; c++)
{
Console.Write(c);
}
Console.WriteLine();//换行
for (int b = 1; b <= 5; b++)
{
Console.Write(b);
}
Console.WriteLine();//换行
for (int a = 1; a <= 6; a++)
{
Console.Write(a);
}
Console.WriteLine();//换行
for (int x = 1; x <= 7; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}