jeudi 22 octobre 2015

Java printing a pattern for loops

I am starting to learn java. I have learned for loops and am trying to print this pattern, based on user input

-+++
+-++
++-+
+++-

but i can't figure out how to get two nested for loops going at once to do this. can someone please help?

Aucun commentaire:

Enregistrer un commentaire