I have 3 sets of array they are: a[i], b[j], c[k] and I have to assign them to a jagged array for me to show them to the output.
array[0] = new int[3] { a[i] };
array[1] = new int[2] { b[j] };
array[2] = new int[2] { c[k] ];
for (i = 0; i < array.Length; i++)
{
Console.Write("First Array: ");
for (int l = 0; l < array[i].Length; l++)
{
Console.Write("\t" + array[i][l]);
}
Console.Write("Second Array: ");
for (int m = 0; m < array[i].Length; m++)
{
Console.Write("\t" + array[i][m]);
}
Console.Write("Third Array: ");
for (int n = 0; n < array[i].Length; n++)
{
Console.Write("\t" + array[i][n]);
}
Console.WriteLine();
}
But I couldn't make them work, they are always giving me an error.