dimanche 10 juin 2018

How to get this strange logic?

Given, Input = {2,4,1,6}

Output = It is a pattern printed as,

       *
       *
   *   *
   *   *
 * *   *
 * * * *

what is the logic behind this pattern?(There may or may not be spaces between the stars.)

Aucun commentaire:

Enregistrer un commentaire