//Nicholas El Habr
//201800512
#include <iostream>
#include <cstdlib>
using namespace std;
int main(int argc, char** argv) {
if (argc != 3) {
cout << "You have supplied an invalid number of command line arguments. Aborting." << endl;
return 1;
} else {
int m = atoi(argv[1]);
int n = atoi(argv[2]);
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++)
cout << i + m * j << " ";
cout << endl;
}
}
}
//Write a program grid.cpp that accepts two command line arguments m,n as integers and prints an m x n grid of numbers in column major order where each cell’s value is i+mj.