mardi 28 mars 2017

Snake Matrix Pattern

"Snake" Print NxN square matrix, filled with numbers 1,2,3,....NxN arranged according to following scheme. for example N=4

          1  2  6  7
          3  5  8  13
          4  9  12 14
          10 11 15 16

Aucun commentaire:

Enregistrer un commentaire