Program to print elements of a Matrix row-wise skipping alternate elements
Given a matrix of N*N size where N is always odd, the task is to print elements of a matrix row-wise skipping alternate elements. Examples: Input: mat[3][3] = {{1, 4, 3}, {2, 5, 6}, {7, 8, 9}} Output: 1 3 5 7 9 Input: mat[5][5] = {{1, 2, 3, 4, 9}, {5, 6, 7, 8, 44}, {19, 10, 11, 12, 33}, {13, 14, 15, 16, 55}, {77, 88, 99, 111, 444}} Output: 1 3 9 6