C#轻松入门课程里的4-10编程题怎么做呀?if嵌套语句
for (int x = 1; x <= 7; x++)//循环7行
{
for (int y = 1; y <= 7; y++)//循环7列
if (x == y || x + y == 8)//对角线打印O
Console.Write("O");
}
else
Console.Write(".");//其他位置打印.
Console.WriteLine();//换行
//请完善代码
说错了,是for嵌套循环