(Solved) : Modify Code Store Multiplication Table Two Numbers 2d Array Named Multtable Multtable Must Q37164307 . . .
Modify the code below to store the multiplication table up totwo numbers in a 2D array named multTable.multTable must be created, populated andtested to store the result of the multiplication ofn * m in the indices [n][m]. (e.g. once multTable has beencreated and populated, multTable[3][4] will return 12)
#include <iostream>
#include <string>
using namespace std;
void multTable(int, int);
int main()
{
multTable(4, 4);
return 0;
}
void multTable (int row, int col) {
for (int a = 1; a <=row; a++) {
for (int b = 1; b <= col; b++) {
cout << a * b << ” “;
}
cout << endl;
}
}
Expert Answer
Answer to Modify the code below to store the multiplication table up to two numbers in a 2D array named multTable. multTable must …
OR