Question: In this problem you will outputting a simple multiplication table. First, start by having the user enter an integer, n, which will be the upper

In this problem you will outputting a simple multiplication table. First, start by having the user enter an integer, n, which will be the upper bound of your multiplication table. Using a nested loop output a multiplication table (matrix) that displays all the values from 1 to n multiplied by all the values from 1 to n. See the sample runs. If the user enters a value equal to or less than 0, no output should be produced. You should use the setw(4) manipulator to make sure all your numbers line up in columns 4 characters wide. Sample run 1 Enter range of multiplication table:8 2 46 8 10 12 14 16 3 6 9 12 15 18 21 24 4 8 12 16 20 24 28 32 5 10 15 20 25 30 35 48 6 12 18 24 30 36 42 48 7 14 21 28 35 42 49 56 8 16 24 32 40 48 56 64 Sample run 2: Enter range of multiplication table: 3 YOUR ANSWER We recommend you take a quick tour of our editor before you proceed. The timer will pause up to 90 seconds for the tour. Start tour For help on how to read input and write output in C++, click here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
