怎么会是竖着的
package boy;
public class jjj {
public static void main(String[] args) {
System.out.println("打印三角形");
for(int i =1; i<=3; i++) {
for(int j =1; j<=i; j++) {
System.out.println("*");
}
System.out.println();
}
}
}
结果
*
*
*
*
*
*