VB step1 还有for i=1 to 10 step

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/27 07:31:25
VB step1 还有for i=1 to 10 step

VB step1 还有for i=1 to 10 step
VB step1 还有for i=1 to 10 step

VB step1 还有for i=1 to 10 step
在for循环中,循环变量的值怎么变化就是由step来决定的.比如你这里,
for i=1 to 10 step 1的意思就是每次循环,变量i的值增加1,这就是step 1的含义.如果每次增加1,step 1可以省略.比如for i=1 to 10 这和前面的语句含义一样.