s=0 For i =1 to 10 step 2 s=s+1 i=i*2 next i 变量i、s的值各为——
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 18:25:15
s=0 For i =1 to 10 step 2 s=s+1 i=i*2 next i 变量i、s的值各为——
s=0 For i =1 to 10 step 2 s=s+1 i=i*2 next i 变量i、s的值各为——
s=0 For i =1 to 10 step 2 s=s+1 i=i*2 next i 变量i、s的值各为——
Private Sub Command1_Click()
s = 0
Print " s"," i"
Print "----------------------"
For i = 1 To 10 Step 2
s = s + 1
i = i * 2
Print s,i ’每次循环S,I 的结果
Next i
Print "----------------------"
Print s,i ’循环结束后S,I 的结果
End Sub