pattern half (pyramid(inverted))
package code.mypack;
public class src {
public static void main(String[] args) {
for (int i = 4; i >= 1; i--) {
for (int j = 1; j <= i; j++) {
System.out.print("*");
}
System.out.println();
}
}
}
Comments
Post a Comment