using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
}
}
}
namespace Test
{
class Program
{
static void Main(string[] args)
{
for (int x=1;x<=7;x++)//请完善代码
{
for (int y=1;y<=7;y++)
{
if (x==y||x+y==8)
{
Console.Write("o");
}
else
{
Console.Write(".");
}
Console.WriteLine();
}
}
}
}
}