need a c++ code that outputs a 23×23 matrix
Answer
#include <iostream>using namespace std;#define ROWS 23#define COLS 23void print_matrix(int matrix[][COLS]) { for (int i = 0; i < ROWS; ++i) { for (int j = 0; j < COLS; ++j) { cout << matrix[i][j] << “t”; } cout << endl; }}int main() { int matrix[ROWS][COLS]; //
OR
OR