Does anyone know how to get this program to output 4 rows and 3 columns of numbers?
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; } }