Created
November 7, 2017 18:28
-
-
Save terrancesmith98/a434ee9723f8891eb6328324656ec9d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ConsoleApp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string[,] sections = new string[3, 3]; | |
sections[0, 0] = "top left"; | |
sections[0, 1] = "top center"; | |
sections[0, 2] = "top right"; | |
sections[1, 0] = "middle left"; | |
sections[1, 1] = "middle center"; | |
sections[1, 2] = "middle right"; | |
sections[2, 0] = "bottom left"; | |
sections[2, 1] = "bottom center"; | |
sections[2, 2] = "bottom right"; | |
for (int i = 0; i < 3; i++) | |
{ | |
for (int j = 0; j < 3; j++) | |
{ | |
Console.Write(sections[i,j] + "\t"); | |
if ((j+1) % 3 == 0) | |
{ | |
Console.WriteLine(""); | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment