打印三角形

5行(看不懂,只得用debug慢慢分析😔)

 1 package Day07;
 2 
 3 import java.util.Scanner;
 4 
 5 public class Java07_5 {
 6     public static void main(String[] args) {
 7         Scanner scanner = new Scanner(System.in);
 8         System.out.println("请输入成绩:");
 9         int score=scanner.nextInt();
10         if (score>=60){
11             System.out.println("及格");
12         }else{
13             System.out.println("不及格");
14         }
15         scanner.close();
16     }
17 }