Console.WriteLine("o.....o");
Console.WriteLine(".o...o.");
Console.WriteLine("..o.o..");
Console.WriteLine("...o...");
Console.WriteLine("..o.o..");
Console.WriteLine(".o...o.");
Console.WriteLine("o.....o");
Console.ReadKey ();
这你都能通过,无法直视你的双眸。
Console.WriteLine(".o...o.");
Console.WriteLine("..o.o..");
Console.WriteLine("...o...");
Console.WriteLine("..o.o..");
Console.WriteLine(".o...o.");
Console.WriteLine("o.....o");
Console.ReadKey ();
这你都能通过,无法直视你的双眸。
哪位大神可以解释一下这段代码的意思
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();
2017-07-10