using System;
public class Program
{
public static void Main()
//for loop defining the rows
//for (int rows = 0; rows < 5; rows++)
//{
//for loop defining the columns
//for (int col = 0; col < 5; col++)
//display O in every iteration of colums
//Console.Write("O");
//}
//create a new line in every iteration of rows
//Console.WriteLine();
//for (int rows = 0; rows < 10; rows++)
//for (int col = 0; col < 10; col++)
//Console.Write("-");
//if (rows==0 || rows==9 || col==0 || col==9)
//Console.Write("X");
//else
for (int rows = 0; rows < 10; rows++)
for (int col = 0; col < 10; col++)
if (rows==0 || rows==9 || col==0 || col==9)
Console.Write("X");
else if (rows == col || rows == 9-col)
else
Console.Write("-");
}
Console.WriteLine();