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
import javautil class pattern public static void mainString arg... View full answer
Get step-by-step solutions from verified subject matter experts
