if2

package Struct;

import java.util.Scanner;

public class IfDemo2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
//考试大于60为合格
System.out.println("请输入成绩:");
int score = scanner.nextInt();

    if (score>60){
        System.out.println("及格");
    }else{
        System.out.println("不及格");
    }




    scanner.close();
}

}

posted @ 2021-10-19 14:45  xxm555  阅读(143)  评论(0编辑  收藏  举报