Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialOLASUNKANMI OTOKITI
Courses Plus Student 2,313 PointsReturn 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
namespace Treehouse.CodeChallenges
{
public static class MathHelpers
{
public static int[][] BuildMultiplicationTable(int maxFactor)
{
cell [][] sheet = new cell[4][];
}
}
}
1 Answer
Steven Parker
231,248 PointsYou 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.