下列程序段的执行结果为【 】。 K=0 For J=1 To2 For I = 1 To 3 K=I+1 Next I For I=1 To7 K=K+I Next I Next J Print K
举一反三
- 下列程序的执行结果是____。 K=0 For I=1 To 3 a=I^I^K print a; Next I
- 下列程序: Option Base 1 Private Sub Form_Click() Dim a(5,5) For i = 1 To 5 For j = 1 To 5 k = k + 1 a (i,j)= k Next j Next i For i = 1 To 5 s = s + a (i,i) Next i Print s End Sub 运行时的输出结果是( )。
- 下列程序的执行结果是______。 k =0 For i=1 To 3 a = i ^ i ^ k Print a; Next I A: 1 1 1 B: 1 2 3 C: 0 0 0 D: 1 4 9
- 运行下列程序段,语句“k = k + 1”的执行次数总共是()。For i = 1 To 10 Step 3 For j = 1 To i k = k + 1 Next jNext i A: 11 B: 12 C: 21 D: 22
- 以下程序段的输出结果为( ) Dim a(10),p(3) k=5 For i=0 To 10 a(i)=i Next i For i=0 To 2 p(i)=a(i+(i+1)) Next i For i=0 To 2 k=k+p(i)+2 Next i Print k A: 20 B: 21 C: 56 D: 32