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