Java流程控制08:打印三角形及Debug

```java
package com.kuangstudy;

public class TestDemo {
public static void main(String[] args) {
//打印三角形

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

```

Debug

上一篇:C语言I博客作业08


下一篇:C语言I博客作业08