Do you know what the output of this code would be? It should be outputting one row per line.
Code:#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int matrix[4][3];
int j, k;
for (j = 0; j < 4; j++)
{
for (k = 0; k < 3; k++)
matrix[j][k] = 2 * j + k;
cout << matrix[j][k] << " ";
cout << endl;
}
}