diff --git a/Prog/Array.md b/Prog/Array.md index cc0ad43..4ecd2db 100644 --- a/Prog/Array.md +++ b/Prog/Array.md @@ -35,6 +35,23 @@ public static void Main() { { 2, 3 }, { 4, 5 } }; - mat[3, 4] = 12; + int a = mat[1, 0]; } -``` \ No newline at end of file +``` + +To display a matrice we will use: +```csharp +public static void Main() { + int[,] mat = { + { 2, 3 }, + { 4, 5 } + }; + int a = mat[1, 0]; + for (int x = 0; x < math.GetLenght(...); x++) { + for (int y = 0; y < math.GetLenght(...); y++) { + Console.WriteLine(mat[x, y]) + } + } +} +``` +