lundi 2 décembre 2019

How do I print this diamond pattern in Java with minimum loops? Optimize it as much as possible?

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

I want to print this pattern with the least number of loops, make it efficient as possible

Aucun commentaire:

Enregistrer un commentaire