Question: In this activity, you will create a multiplication table based on lengths that a user gets to input. 1. Include the proper input and output.
In this activity, you will create a multiplication table based on lengths that a user gets to input. 1. Include the proper input and output. Ask the user how many rows and columns they would like in their multiplication table. 2. Declare the two-dimensional array based on these values. 3. Now use a nested for loop, similar to the previous activity, to fill the multiplication table with values. For each element, the answer should be the current row times the current column. For example, a table with 3 rows and 4 columns would have these values:
1 2 3 4
2 4 6 8
3 6 9 12
4. Use a second nested for loop now to display it back. Dont forget to use whitespace characters to make it neat and organized!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
