Print an n by n multiplication grid. Each row holds the products separated by a single space, so n = 3 starts with the line "1 2 3". Do not leave a space at the end of a line.
void grid(int n)
Examples
There are also 2 hidden tests you can't see. Solve the problem, not the examples.