Untitled

mail@pastecode.io avatar
unknown
c_cpp
8 months ago
435 B
3
Indexable
Never
#include <iostream>
using namespace std;

int main() {
    
    int n, m;
    cin >> n >> m;
    
    int matrica[n][m];
    
    for(int i = 0; i < n; i += 1) {
        for(int j = 0; j < m; j += 1) {
            cin >> matrica[i][j];
        }
    }
    
    for(int i = 0; i < n; i += 1) {
        for(int j = 0; j < m; j += 1) {
            cout << matrica[i][j] << " ";
        }
        cout << endl;
    }
    
    return 0;
}

Leave a Comment