JAVA 会员积分x x

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 15:26:26
JAVA会员积分xxJAVA会员积分xxJAVA会员积分xxJava程序:importjava.util.Scanner;publicclassxll{publicstaticvoidmain(St

JAVA 会员积分x x
JAVA 会员积分x x

JAVA 会员积分x x
Java程序:
import java.util.Scanner;
public class xll {
public static void main(String[] args) {
int score;
double count = 1.0;
Scanner input = new Scanner(System.in);

System.out.println("请输入会员积分:");
score = input.nextInt();

if(score < 2000)
count = 0.9;
else if(score