Dim i, j as integer 表明i和j都是整型变量.
举一反三
- 以下声明I是整型变量的语句正确的是( ). A: Dim I,j As single B: I=1234 C: Dim I As Integer D: I As Integer
- 以下声明I是整型变量的语句正确的是____。 A: Dim<br/>I, j As Integer B: I=12.34 C: Dim<br/>I As Integer D: I<br/>As Integer
- 下列程序段的执行结果为 _______。 Dim a(3, 5) As Integer Dim i As Integer, j As Integer For i = 1 To 3 For j = 1 To 5 a(i, j) = a(i - 1, j - 1) + (i - 1) * 5 + j Next j Next i Print a(3, 4)
- 下列程序中 s = s + j 语句共执行了______次。 Dim s As Integer Dim i As Integer, j As Integer For i = 1 To 10 Step 2 For j = 1 To 5 Step 2 s = s + j Next j Next i Print s
- 以下程序段运行的结果是______。 Dima(-1 To 5)As Boolean Dim flag As Boolean flag=False Dim i As Integer Dim j As Integer Do Until flag=True For i=-1 To 5 j=j+1 If a(i)=False Then a(i)=True Exit For End If If i=5 Then flag=True End If Next Loop Print j A.20 B.7 C.35 D.8