I want to draw a circle in java with asterisk but without using graphics. I want to use loops (like we do in other patterns).
*********
*** ***
** **
** **
** **
** **
* *
* *
* *
** **
** **
** **
** **
*** ***
*********
There is similar pattern present on SO but it is in ruby. I want the same pattern in java using loops.
Aucun commentaire:
Enregistrer un commentaire