/**
* *****
* ****
* ***
* **
* *
*
*
*
*/
public class Demo {
public static void main(String[] args) {
for(int i = 5; i > 0; i--) {
for (int j = i; j > 0 ; j--) {
System.out.print("*");
}
System.out.println();
}
}
}
java 打印一个倒直角三角形
猜你喜欢
转载自blog.csdn.net/Mr_tie/article/details/90105711
今日推荐
周排行