Skip to content
Snippets Groups Projects
vector2D_loop_3.cpp 263 B
Newer Older
#include <iostream>
#include <vector>
using namespace std;

int main() {
    vector<vector <int>> tab = {{2, 5}, {1, 4}};

    for(int i=0; i< tab.size(); i++) {
        for(int j=0; j<tab[i].size();j++) {
            cout << tab[i][j] << endl;
        }
    }
}