int score = 60; if(x>100&&y>500) score=score+1; if(x>=1000||z>5000) score=score+5;

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/15 10:16:25

int score = 60; if(x>100&&y>500) score=score+1; if(x>=1000||z>5000) score=score+5;
int score = 60; if(x>100&&y>500) score=score+1; if(x>=1000||z>5000) score=score+5;

int score = 60; if(x>100&&y>500) score=score+1; if(x>=1000||z>5000) score=score+5;
分数变量初始值为60
当x大于100并且y大于500的时候,分数值加1
当x大于1000或者z大于5000的时候,分数值加5