=90): n+=1B. if(gende…"> -->
当前位置:首页 > 题库

单选题:下面if语句统计“成绩(score)优秀的男生以及不及格的男生”的人数,正确的语句为()

Luz3年前 (2022-12-04)题库519
下面if语句统计“成绩(score)优秀的男生以及不及格的男生”的人数,正确的语句为()
@[C](2)

A.
if(gender=="男"and score<60 or score>=90):
n+=1


B.
if(gender=="男"and score<60 and score>=90):
n+=1


C.
if(gender=="男"and(score<60 or score>=90)):
n+=1


D.
if(gender=="男"or score<60 or score>=90):
n+=1





A.
if(gender=="男"and score<60 or score>=90):
n+=1


B.
if(gender=="男"and score<60 and score>=90):
n+=1


C.
if(gender=="男"and(score<60 or score>=90)):
n+=1


D.
if(gender=="男"or score<60 or score>=90):
n+=1




答案:C