Write a Program to print the given matrix in wave like form.
Input Matrix: - 0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19
Output :-
0 5 10 15 16 11 6 1 2 7 12 17 18 13 8 3 4 9 14 19
No comments:
Post a Comment