Pro_Unit

Untitled

Feb 26th, 2020
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.16 KB | None | 0 0
  1. class Program
  2.     {
  3.         static void Main(string[] args)
  4.         {
  5.             char[,] map =
  6.             {
  7.                 {'#','#','#','#','#','#','#','#','#','#','#','#','#','#',},
  8.                 {'#',' ','#',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','#',},
  9.                 {'#',' ','#',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','#',},
  10.                 {'#',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','#',},
  11.                 {'#',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','#',},
  12.                 {'#',' ','#',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','#',},
  13.                 {'#',' ','#',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','#',},
  14.                 {'#',' ','#',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','#',},
  15.                 {'#',' ','#',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','#',},
  16.                 {'#','#','#','#','#','#','#','#','#','#','#','#','#','#',},
  17.             };
  18.  
  19.             for (int i = 0; i < map.GetLength(0); i++)
  20.             {
  21.                 for (int j = 0; j < map.GetLength(1); j++)
  22.                 {
  23.                     Console.Write(map[i, j]);
  24.                 }
  25.                 Console.WriteLine();
  26.             }
  27.  
  28.         }
Add Comment
Please, Sign In to add comment