Untitled

mail@pastecode.io avatarunknown
plain_text
2 months ago
681 B
3
Indexable
Never
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() ;
        }
    }
    }