C# C# Collections Arrays Jagged Arrays

Return a multiplication table consisting of an array of arrays. The table should contain all of the products of integers

Return a multiplication table consisting of an array of arrays. The table should contain all of the products of integers from 0 to maxFactor. For example, if maxFactor is 3 the resulting multiplication table should contain the following:

0 0 0 0 0 1 2 3 0 2 4 6 0 3 6 9

Math.cs
namespace Treehouse.CodeChallenges
{
    public static class MathHelpers
    {
        public static int[][] BuildMultiplicationTable(int maxFactor)
        {
            cell [][] sheet = new cell[4][];
        }
    }
}

1 Answer

Steven Parker
Steven Parker
203,990 Points

You quoted the instructions here but have not asked a question. Please elaborate more on what you are asking.

But the one line of code shown is referencing something named "cell" that has not been defined.