Untitled
Anonymous
plain_text
08/12/2023 5:47 AM
908 B
15
Indexable
internal class Program
{
static void Main(string[] args)
{
int[,] array = new int[9, 9]
{
{ 1,1,1,1,1,1,1,1,1},
{ 1,0,0,0,0,0,0,0,1},
{ 1,0,1,1,1,1,1,0,1},
{ 1,0,1,0,0,0,1,0,1},
{ 1,0,1,0,1,1,1,0,1},
{ 1,0,1,0,0,0,0,0,1},
{ 1,0,1,1,1,1,1,1,1},
{ 1,0,0,0,0,0,0,0,0},
{ 1,1,1,1,1,1,1,1,1}
};
for (int i = 0; i<9; i++)
{
for (int j = 0; j<9; j++)
{
Console.Write(array[i,j]);
}
Console.WriteLine() ;
}
}
}Editor is loading...