- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
int[][] arr = new int[3][];
arr[0] = new int[3];
arr[1] = new int[2];
arr[2] = new int[5];
arr[0][2] = 16;
arr[1][0] = 45;
arr[2][4] = 99;
foreach (int item in arr[0])
Console.Write(item + " ");
Console.WriteLine();
foreach (int item in arr[1])
Console.Write(item + " ");
Console.WriteLine();
foreach (int item in arr[2])
Console.Write(item + " ");
Этот foreach просто божественен