package com.zxs.process;标签:Scanner,System,测试,println,out,public,scanner From: https://www.cnblogs.com/xiaoxiaodeyan/p/17113715.html
import java.util.Scanner;
public class ifces {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("请输入:");
//定义输入的数据类型
int i = scanner.nextInt();
if(i >= 60){
if(i>80){
System.out.println("优秀");
}
else {
System.out.println("及格");
}
}
else {
System.out.println("不及格");
}
scanner.close();
}
}