/** C PROGRAM TO PRINT MATRIX IN SNAIL SHELL FORMAT **/

//for printing matrix as in the below given format
//   01  02  03  04
//   12  13  14   05
//   11  16  15   06
//  10  09  08  07


 

Output: ( using GNU GCC Compiler with code::blocks IDE, hence no need of clrscr(); and getch(); so we are commenting that )
snail-matrix-output_2