题干

有如下VB程序段:

Dim a As Integer, b As Integer, c As Integer, y As Integer

a=3:b=4:c=4

If a<=b And c<=a Then

  y=a+b

ElseIf a<=b or b<=c Then

  y=b+c

ElseIf b=c Then

y=a mod c

Else

  y=a+b+c

End If

该程序段运行之后,变量y的值为(   )

A:3

B:7

C:8

D:11

上一题 下一题 0.0难度 选择题 更新时间:2020-04-01 07:01:16

答案(点此获取答案解析)

C