dimanche 11 octobre 2020

I want to print star Diamond pattern where Rows = Columns, in Java using while loop [closed]

I want to print the following pattern using while loops only, How can I do that ? Condition here is Rows = Columns; If input is 5, then the pattern will be as below.

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

Aucun commentaire:

Enregistrer un commentaire