VB题 x是?for x=5 to 2.5 step -7 next xVB题 x是?for x=5 to 2.5 step -7next xprintx
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/05 15:38:12
![VB题 x是?for x=5 to 2.5 step -7 next xVB题 x是?for x=5 to 2.5 step -7next xprintx](/uploads/image/z/3009411-27-1.jpg?t=VB%E9%A2%98+x%E6%98%AF%3Ffor+x%3D5+to+2.5+step+-7+next+xVB%E9%A2%98+x%E6%98%AF%3Ffor+x%3D5+to+2.5+step+-7next+xprintx)
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