package homework2;
import java.util.Scanner;
public class homework2 {
public static void main(String arge[]){
Scanner scanner = new Scanner(System.in);
System.out.println("请输入会员积分");
int um=scanner.nextInt();
if(0<=um&&um<2000){
System.out.println("打9折");
}
if(2000<=um && um<4000){
System.out.println("打8折");
}else if(4000<=um&&um<8000){
System.out.println("打7折");
}else if(um>8000){
System.out.println("打6折");
}else{
System.out.println("对不起您的积分不够");
}
}
}
好像没用还是报错
请输入会员积分
sdfsdf
输入有误,只能是数字!