Hi Everyone.
I am assigned to develop a multiplication table using 2D Arrays and Nested loops. The teacher gave us a starting form/etc, but I just dont know where to start! 2 dimensional arrays really threw me for a loop (no pun intended). Can anyone help get me started?
I have attached the startup form, etc. Here are the class requirements:
- A two dimensional array has been declared in the program as: int [ , ] intTable = new int[9,9]; // 9 x 9 table
- Students are to develop the method that loads the multiplication table into the array using nested loops. Use intTable.GetLength(0) to go down the table and intTable.GetLength(1) to go across.
- Students are to develop the method that displays the array after it has been loaded with the multiplication table using nested loops.
- Students are to develop the method that searches the array for all occurrences of the number entered as the search criteria in the textbox. Again, use nested loops.
How shall I start this one?