s=0 For i =1 to 10 step 2 s=s+1 i=i*2 next i 变量i、s的值各为——
来源:学生作业帮助网 编辑:六六作业网 时间:2024/09/02 10:01:44
s=0Fori=1to10step2s=s+1i=i*2nexti变量i、s的值各为——s=0Fori=1to10step2s=s+1i=i*2nexti变量i、s的值各为——s=0Fori=1to1
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