Need C Code Outputs 23×23 Matrix Q37160900

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.