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