vault backup: 2023-11-16 09:47:47

This commit is contained in:
Louis Gallet 2023-11-16 09:47:47 +01:00
parent 57a80ca10d
commit 34a3ad835a
Signed by: lgallet
SSH Key Fingerprint: SHA256:qnW7pk4EoMRR0UftZLZQKSMUImbEFsiruLC7jbCHJAY

View File

@ -35,6 +35,23 @@ public static void Main() {
{ 2, 3 }, { 2, 3 },
{ 4, 5 } { 4, 5 }
}; };
mat[3, 4] = 12; int a = mat[1, 0];
} }
``` ```
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])
}
}
}
```