Java 打印* 三角形

package anli1;

public class sanjiaoxing {
    public static void main(String[] agrs){
        System.out.println("      * ");
        System.out.println("     * * ");
        System.out.println("    * * *   ");
        System.out.println("   * * * *   ");
        System.out.println("  * * * * *   ");
    }
}

 

posted @ 2017-11-01 21:07  大象无形01  阅读(582)  评论(0编辑  收藏  举报