-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJagged array.cs
More file actions
32 lines (26 loc) · 823 Bytes
/
Jagged array.cs
File metadata and controls
32 lines (26 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C__Oops
{
internal class Jagged_array
{
public Jagged_array()
{
Object[][] froutSize = new object[4][]; // different column size array
froutSize[0] = new object[] {"Banana:", 5, 7, 9};
froutSize[1] = new object[] { "Mango:", 1, 9 };
froutSize[2] = new object[] { "Apple:", 5 };
froutSize[3] = new object[] { "Malta:", 5, 7, 9, 5, 5, 9};
foreach (object[] array in froutSize) {
foreach (object item in array) {
Console.Write(item+", ");
}
Console.WriteLine();
}
Console.WriteLine();
}
}
}