package com.Beverly.strct;
public class TestDemo {
public static void main(String[] args) {
//打印三角形:5行
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();
}
}
}
断点
1.点击程序左端,出现圆形
2.再点击程序上方类似“蟑螂”形状的按钮,进行断点判断
标签:int,打印,点击,三角形,断点,public From: https://blog.csdn.net/Beverly_w/article/details/141202690