Question #56501

What is the significance of System.out.println(" "), while making a right angle triangle with star??

*
**
***

Expert's answer

for (int i = 1; i <= 3; i++) {

for (int j = 1; j <= i; j++) {
System.out.print("*");
}
System.out.println();
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS