问题
单项选择题
若整型变量a值为2、b的值为3,则下列程序段执行后整型变量c的值为______。 If a>5 then If b<4 Then c=a-b Else c=b-a Else If b>3 Then c=a*b Else c=a mod b End If
A.2
B.-1
C.1
D.6
答案
参考答案:A
若整型变量a值为2、b的值为3,则下列程序段执行后整型变量c的值为______。 If a>5 then If b<4 Then c=a-b Else c=b-a Else If b>3 Then c=a*b Else c=a mod b End If
A.2
B.-1
C.1
D.6
参考答案:A