题库 高中信息

题干

若整型变量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.2B.-1C.1D.6
上一题 下一题 0.99难度 选择题 更新时间:2019-04-18 08:56:35

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