+ 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.
2 Antworten
+ 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...
+ 1
Could you post the code in Code Playground so we can see what you mean?