[二级VB试题天天练]VB考试试题12
13.程序控制结构练习(3) 试试看,下面的循环体执行了几次? Dim i As Integer Dim k As Integer k = 0 For i = 0 To 10 k = k + 1 i = i + k Next 可以这样修改代码来测试: Private Sub Form_Click() Dim i As Integer Dim k As Integer k = 0 For i = 0 To 10 k = k + 1 i = i + k Print k Next End Sub 相关资料 |