Star Pattern The user inputs n(in the image, n is 3) and code prints the respective pattern. Thanks, I am new here !
I tried to imagine that it is like an nxn pattern and I put some if-else conditions for the positions which have a space. I thought a lot about the if-else conditions but couldn't come up with the solution.
Aucun commentaire:
Enregistrer un commentaire