scanner键入判断输入的值的和以及平均值
作者:互联网
package base.base;
import java.util.Scanner;
public class Demo07 {
public static void main(String[] args) {
Scanner i = new Scanner(System.in);
System.out.println("请输入接下来的内容:");
int x=i.nextInt();
if (x>=60&x<=100){
System.out.println("及格");
}else{
System.out.println("不及格");
}
i.close();
}
}
标签:Scanner,System,键入,base,scanner,public,输入,平均值 来源: https://blog.csdn.net/qdyones/article/details/121766997