/* CSE 142, Autumn 2009, Marty Stepp This program prints the following pattern of lines using nested loops: ....1 ...2 ..3 .4 5 */ public class ComplexLines { public static void main(String[] args) { for (int line = 1; line <= 5; line++) { for (int dot = 1; dot <= (-1 * line + 5); dot++) { System.out.print("."); } System.out.println(line); } } }