/ Assignment / assignment_20.java
assignment_20.java
1 2 /* 3 * Output the following pattern 4 * 1 5 * 2 2 6 * 3 3 3 7 * 4 4 4 4 8 * 5 5 5 5 5 9 */ 10 public class assignment_20 { 11 public static void main(String[] args) { 12 for (int i = 0; i < 6; i++) { 13 for (int j = 1; j < i + 1; j++) { 14 System.out.print(i); 15 } 16 System.out.println(); 17 } 18 } 19 }