package ass;
import java.util.Scanner;
public class ssf {
public static void main(String[] args) {
// TOOD Auto-generated method stud
int score;
Scanner sc=new Scanner(System.in);
System.out.println("请输入学生成绩:");
score=sc.nextInt();
if(score>=0&&score<=100)
{
System.out.println("输入的成绩有效!");
}
else
{
System.out.println("输入的成绩无效!(学生成绩需在0-100之间)" );
}
}
}
import java.util.Scanner;
public class ssf {
public static void main(String[] args) {
// TOOD Auto-generated method stud
int score;
Scanner sc=new Scanner(System.in);
System.out.println("请输入学生成绩:");
score=sc.nextInt();
if(score>=0&&score<=100)
{
System.out.println("输入的成绩有效!");
}
else
{
System.out.println("输入的成绩无效!(学生成绩需在0-100之间)" );
}
}
}