Visual Studio
Visual Studio
Visual Studio
2024-03-15
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
//请完善代码
for (int i = 0; i < 7; i++) {
for (int j = 0; j < 7; j++)
{
if (j == i || j == 6 - i)
{
Console.Write("O");
}
else
{
Console.Write(".");
}
}
Console.WriteLine("");
}
}
}
}
举报