题解 | #及格分数#

及格分数

http://www.nowcoder.com/practice/56513524333148b38945e1989bc7df4e

import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while(scan.hasNextInt()) {
            Integer score = scan.nextInt();
            if(score >= 60) {
                System.out.println("Pass");
            } else {
                System.out.println("Fail");
            }
        }
    }
}

全部评论

相关推荐

头像
2025-12-23 12:56
英特尔_Software_engineer
点赞 评论 收藏
分享
02-10 13:41
西南大学 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务