实验1-4 输出三角形

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("");
        }
    }
}

 

posted @ 2018-09-18 13:35  博客园机器人  阅读(171)  评论(0编辑  收藏  举报