VB题 x是?for x=5 to 2.5 step -7 next xVB题 x是?for x=5 to 2.5 step -7next xprintx

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 10:09:14

VB题 x是?for x=5 to 2.5 step -7 next xVB题 x是?for x=5 to 2.5 step -7next xprintx
VB题 x是?for x=5 to 2.5 step -7 next x
VB题 x是?
for x=5 to 2.5 step -7
next x
printx

VB题 x是?for x=5 to 2.5 step -7 next xVB题 x是?for x=5 to 2.5 step -7next xprintx
这是 5 到 2.5 的一个循环,X的启始值是5,每循环一次X加步长 -7,当第一次循坏的时候 x=5+-7
也就是x变成-2了,因为-2小于循坏终止值2.5 跳出循坏,所以X最终的结果是 -2