package hello; public class sanjiaoxing { public static void main(String[] args) { for (int i = 0; i <= 4; i++) { for (int j = 0; j <= 3 - i; j++) { System.out.print("1"); } for (int j = 0; j <= i; j++) { System.out.print(" *"); } System.out.println(); } } }