没有弄出来
请求给于帮助
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test01
{
class Program
{
static void Main(string[] args)
{
const int n = 7;
for (int y = 1; y <= n; y++)
{
for (int x = 1; x <= n; x++)
{
if (x == y || x == n - y + 1)
{
Console.Write("O");
}
else
{
Console.Write(".");
}
}
Console.WriteLine();
}
}
}
}
举报