using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace frist1
{
class Program
{
static void Main(string[] args)
{
int[,] matrix = new int[9, 9];
for (int i=0;i<9;i++)
{
for (int j=0;j<9;j++)
{
if(i==j||i==8-j)
{
matrix[i,j]= 1;//对角线元素为1
}