A-A+
下列程序段的执行结果为 a=75 If a > 60 Then Score=1 If a >
问题详情
下列程序段的执行结果为 a=75 If a > 60 Then Score=1 If a > 70 Then Score=2 If a > 80 Then Score=3 If a > 90 Then Score=4 Print "Score= ";Score
A.Score=1
B.Score=2
C.Score=3
D.Score=4请帮忙给出正确答案和分析,谢谢!
参考答案
正确答案:B
解析:如果a>60,则Score=1;如果a>70,则Score=2;如果a>80,则Score=3;如果a>90,则Score=4;本题的条件是a=75,输出结果应该是Score=2。注意:块结构条件语句的使用方法。