题目内容

执行以下语句后,k的值为_____。Dim i As SingleFor i = 0.45 To 2 Step 0.5k = k + 3Next iPrint i;k

查看答案
更多问题

有程序段如下:For i = 1 To 5For j = 5 Toi Step -1Print i * jNext jNext i其中"Print i*j"语句执行的次数为_________。

下面程序运行后,单击command1后屏幕显示是_________。Private Sub command1_click()For i = 1 To 5If i > 3 Then Exit ForNext iFor j = 1 To 8i =i + jNext jPrint i, jEnd Sub

在窗体上画一个名称为Text1的文本框和一个名称为Command1的命令按钮,然后编写如下事件过程:Private Sub Command1_Click()Dim i As Integer, n As IntegerFor i = 0 To 50i = i + 5n = n + 1If i > 30 Then Exit ForNextText1.Text = Str(n)End Sub程序运行后,单击命令按钮,在文本框中显示的值是______。

设有如下程序段:x = 2For i = 1 To 20 Step 3x = x + iNext i运行以上程序后,x的值是______。

答案查题题库