vault backup: 2023-11-16 09:47:47
This commit is contained in:
parent
57a80ca10d
commit
34a3ad835a
@ -35,6 +35,23 @@ public static void Main() {
|
||||
{ 2, 3 },
|
||||
{ 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])
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user