package com.scanner;
import java.util.Scanner;
public class IfDemo03 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println(“请输入一个数:”);
int score = scanner.nextInt();
if (score == 100){
System.out.println(“真棒”);
}else if(score>=60&&score<100){
System.out.println(“还行!”);
}else if (score<60&&score>=0) {
System.out.println(“加油哦!”);
}else{
System.out.println(“请输入您的真实成绩!”);
}
scanner.close();
}
}