Write a Program to display Matrix in a Wave like form – Nagarro Interview Question

This is one of the subjective programming question of Nagarro.

Input String :
1   2   3
4   5   6
7   8   9

Your Output should be:
1 4 7 8 5 2 3 6 9




wave

Leave a Reply

Your email address will not be published. Required fields are marked *