How do you write a Java program that generates an isosceles triangle made of asterisks. The program
Fantastic news! We've Found the answer you've been seeking!
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 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
*
**
***
****
*****
******
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: