vb题目for b=1 to 15 step -5a=2for b=1 to 15 step -5 这步那b到底取哪几个数呢 不是 15 10 a=a+bnext bprint a,b为什么答案是2,1

来源:学生作业帮助网 编辑:六六作业网 时间:2024/07/10 14:41:32
vb题目forb=1to15step-5a=2forb=1to15step-5这步那b到底取哪几个数呢不是1510a=a+bnextbprinta,b为什么答案是2,1vb题目forb=1to15st

vb题目for b=1 to 15 step -5a=2for b=1 to 15 step -5 这步那b到底取哪几个数呢 不是 15 10 a=a+bnext bprint a,b为什么答案是2,1
vb题目for b=1 to 15 step -5
a=2
for b=1 to 15 step -5 这步那b到底取哪几个数呢 不是 15 10
a=a+b
next b
print a,b
为什么答案是2,1

vb题目for b=1 to 15 step -5a=2for b=1 to 15 step -5 这步那b到底取哪几个数呢 不是 15 10 a=a+bnext bprint a,b为什么答案是2,1
for b=1 to 15 step -5 不能进入循环体
for b=1 to 15 step 5 b=1,6,11
for b=15 to 1 step -5 b=15,10,5