Array-promo
Matrix-promo

Question

Program to sort non-boundary elements of the matrix in ascending order.

				
					Matrix =  [5, 2, 9, 8, 7]
          [9, 6, 4, 2, 3]
          [3, 8, 1, 3, 9]
          [1, 2, 3, 4, 5]
          
          
SORTED MATRIX
[5, 2, 9, 8, 7]
[9, 1, 2, 3, 3]
[3, 4, 6, 8, 9]
[1, 2, 3, 4, 5]
				
			

Share code with your friends

Share on whatsapp
Share on facebook
Share on twitter
Share on telegram

Code

Coding Store

Leave a Reply

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