package com.company; public class Main { public static void main(String[] args) { // write your code here int i,j; for(j=4;j>0;j--) { for (i = j; i > 0; i--) { System.out.print("*"); } System.out.println(""); } } }
package com.company; public class Main { public static void main(String[] args) { // write your code here int i,j; for(j=4;j>0;j--) { for (i = j; i > 0; i--) { System.out.print("*"); } System.out.println(""); } } }
转载于:https://www.cnblogs.com/zhuzehua/p/9668424.html