Project 43

Two - Dimensional Arrays & Nested loop (75 points)
Write an applet which will output a multiplication table. Allow the user to input the number of rows and columns. Using a nested loop, your applet must fill each product into a two - dimensional array. For example, if the number of rows = 4 and the number of columns = 3, then fill the array in the following manner :

num[0][0] = 1 X 1 = 1, num[0][1] = 1 X 2 = 2, num[0][2] = 1 X 3 = 3
num[1][0] = 2 X 1 = 2, num[1][1] = 2 X 2 = 4, num[1][2] = 2 X 3 = 6
num[2][0] = 3 X 1 = 3, num[2][1] = 3 X 2 = 6, num[2][2] = 3 X 3 = 9
num[3][0] = 4 X 1 = 4, num[4][1] = 4 X 2 = 8, num[0][2] = 4 X 3 = 12

Use a second nested for loop to dump out the table. For example,

Other Requirements:


Sample Output for Project43