当前位置: X题卡 > 所有题目 > 题目详情

已知程序段: sum=0 For i=1 to 10 step 3 sum=sum+i i=i*2 Next i 当循环结束后,变量i、sum的值分别为( )。

查看本题答案

你可能感兴趣的试题

For i=1 To 10 For j=1 To 10 If i=j Then Sum = Sum+ arrayl (i, End If Next j Next i Label Caption=Sum  For i=l TO 10 Forj=1 To 10 If i= =j Then Sum=Sum+array1 (i, End If Next j Next i Label Caption=Sum  For i=1 To 10 For j=1 To l0 If i=j Then Sum=Sum+arrayl (i, End If Next i Next j Lahel Caption=Sum  For i=1 To 10 For j=1 To l0 If i=j Then Sum=arrayl (i, End If Next j Next i Label Caption=Sum  
Private Sub Command1_Click() Sum=0 ForI=1 To 10 Sum=Sum+I Next I Print Sum End Sub  Private Sub Command1_Click() Sum=0,I=1 Do While I<=10 Sum=Sum+I I=I+1 Print Sum End Sub  Private Sub Command1_Click() Sum=0: I=1 Do Sum=Sum+I I=I+1 Loop While I<10 Print Sum End Sub  Private Sub Command1_Click() Sum=0: I=1 Do Sum=Sum+I I=I+1 Loop Until I<10 Print Sum End Sub  
Private sub Command1_Click( ) sum=0 For 1=1 To 10 Sum=sum+1, Next I Print Sum End Sub  Private sub Command1_Click( ) Sum=0,I=1 Do While l<=10 Sum=Sum+1 I=I+1 Print Sum End Sub  Private Sub command1_click( ) Sum=0:I=1 Do Sum=Sum+1 I=I+1 Loop While I<10 Print Sum End Sub  Private Sub command1_Click( ) Sum=0:I=1 Do Sum=Sum+1 l=I+1 Loop Until I<10 Print Sum End Sub  

热门试题

更多