Okay, I know you have to make an array to get this but I forgot how to do the printing correctly. Was wondering if anyone could help me.
Here is the question,
C++ to print elements in a m x n matrix. Must print in a clockwise manner. Start from the element at the top left. No element is the matrix is to be printed twice. A matrix may have several elements with the same value. Okay to print the same value more than once, though noth the element that contains the value. The algorithm must be able to handle matrices with even and odd rows of numbers and columns. ex. 6x6, 2x4. The numbers printed should be, 1 2 3 4 9 14 19 1 17 16 11 6 7 8 13 12.
Thanks. I just keep blanking on what to do next.
Here is the question,
C++ to print elements in a m x n matrix. Must print in a clockwise manner. Start from the element at the top left. No element is the matrix is to be printed twice. A matrix may have several elements with the same value. Okay to print the same value more than once, though noth the element that contains the value. The algorithm must be able to handle matrices with even and odd rows of numbers and columns. ex. 6x6, 2x4. The numbers printed should be, 1 2 3 4 9 14 19 1 17 16 11 6 7 8 13 12.
Thanks. I just keep blanking on what to do next.