+ 1

I am Trying to Print The Star Pattern In Java,But It Is Not Giving Tge Desired Output?

I am Using 2 For Loops And Two Int(i,j). But It Seems That The Pattern Is Printed Vertically whereas it Should Be Intge Form of A right Angled Triangle.

21st Jun 2019, 10:23 AM
Arrow Jr
2 Réponses
+ 2
in the inner loop you might be using System.out.println instead of this you should use System.out.print i think this was the problem...
6th Jul 2019, 12:10 PM
mn121
mn121 - avatar
+ 1
Could you post the code in Code Playground so we can see what you mean?
21st Jun 2019, 10:33 AM
Rincewind
Rincewind - avatar