流程控制练习
打印三角形 五行
for (int i = 1; i <= 5; i++) {
for (int j = 5; j >= i; j--) {
System.out.print("*");
}
for (int j = 1; j <= i; j++) {
System.out.print("#");
}
for (int j = 1; j < i; j++) {
System.out.print("#");
}
System.out.println();
}
输出结果标签:控制,int,流程,练习,System,print,out From: https://www.cnblogs.com/QK-qk/p/16726358.html
*****#
****###
***#####
**#######
*#########