Answer to Question #56501 in Java | JSP | JSF for Ankit Singh

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

*
**
***
1
Expert's answer
2016-01-19T08:28:40-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS