Question: How do you write a Java program that generates an isosceles triangle made of asterisks. The program should prompt the user to specify the size

How do you write a  Java program that generates an isosceles triangle made of asterisks. The program should prompt the user to specify the size of the triangle. Make sure variable names are appropriate,and make sure there are comments for the weird variables like sideSize. Use good style.

Sample session:

Enter the size of the equal sides in an isosceles triangle: 6

*
**
***
****
*****
******

Step by Step Solution

3.40 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautil class pattern public static void mainString arg... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!