C# PROGRAM TO PRINT MATRIX IN A SNAIL SHELL WAY

original post link: http://csharpsense.blogspot.in/2013/02/c-program-print-multi-dimensional-array.html

/**C# PROGRAM TO PRINT MATRIX IN SNAIL SHELL FORMAT**/
//for printing matrix as in the below given format
//   1  2  3 4
//  12 13 14 5
//  11 16 15 6
//  10 9  8  7

 

Sample Outputs:
(output:1)
SNAIL MATRIX Output
(output : 2) if we are giving size greater than 10 or less than 2
SNAIL MATRIX OUTPUT 2

(output : 3) If we are entering input other than int type.

SNAIL-MATRIX-OUTPUT_3

1 thought on “C# PROGRAM PRINT A MULTI-DIMENSIONAL ARRAY IN SNAIL SHELL WAY”

Leave a Reply

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