int[] num = new int[] { 3,34,42,2,11,19,30,55,20};
//请完善代码,循环打印数组中的偶数
for (int i = 0; i < num.Length; i++)
{
if (num[i] % 2 == 0)
Console.Write(num[i].ToString() + ',');
}
for (int y = 1; y <= 7; y++)
{
for (int x =1; x <= 7; x++)
{
if (x == y || x + y == 8)
Console.Write('O');
else
Console.Write('.');
}
Console.WriteLine(' ');
}