用java怎么编译 如果年龄大于20小于40就加10分否则减10分 这句话

2025-02-26 20:48:05
推荐回答(1个)
回答1:

float score;
int age;
if(age>20&&age<40)score=score+10;
else score=score-10;