60 661
Assignments Done
97,7%
Successfully Done
In April 2018

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??

*
**
***
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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions