Question: Write a Java program that reads (using the Scanner class) an integer value representing the number of rows associated with a triangular diagram. After reading
Write a Java program that reads (using the Scanner class) an integer value representing the number of rows associated with a triangular diagram. After reading the value, your program will generate a triangular diagram with the specified number of rows. For example, if the user enters 4 your program will print:

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
