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