must be based on the current row number/iteration of the outer-most loop. – nt: Treat
Program 1 – Triangles: Write a Java application (Triangles.java) that displays the following triangle patterns side-by-side using nested while loops. Everything can be in main(). – Use class Scanner to…