if (score >=90 && score <= 100)
{
level= "A等级";
else if(score>=80 && score<=89)
{
level="B等级“;
}
else if(score>=70 && score<=79)
{
level="C等级“
}
else if(score>=60 && score<=69)
{
level="D等级“;
}
else if(score>=0 && score<=60)
{
level="E等级“;
}
else
{
System.out.println("分数有误");
}
System.out.println(score+"----"+level);
怕你难写,给你补充一下 |