执行下列程序段时,分别在输入框中输入2、4、6,则执行结果是______。 Dim A(4) As Integer Dim B(4) As Integer For i = 0 To 2 A(i + 1) = Val (InputBox (“请输入数据”)) B(3 - i) = A(i + 1) Next i Print B(i)A.2B.4C.6D.8
执行下列程序段时,分别在输入框中输入2、4、6,则执行结果是______。 Dim A(4) As Integer Dim B(4) As Integer For i = 0 To 2 A(i + 1) = Val (InputBox (“请输入数据”)) B(3 - i) = A(i + 1) Next i Print B(i)
A.2
B.4
C.6
D.8
相关考题:
设执行以下程序段时依次输入2,4,6执行结果为 Dim a(4) As Integer,b(4) As Integer For k =0 To 2 a(k + 1) = Val(InputBox( "Enter data:" ) ) b(3 - k) =a(k + 1) Next Print b(k)A.2B.4C.6D.0
若执行下列程序时从键盘上输入2,则输出结果是()。 inclUde main() {int a; scanf("%d", 若执行下列程序时从键盘上输入2,则输出结果是( )。#inclUde<stdio.h>main(){int a;scanf("%d",A);if(a++<3)printf("%d\n",A);else printf("%d\n",a--);}A.1B.3C.2D.4
有如下程序段:intt[][3]={1,2,3,4,5,6,7,8,9,10,11,12};printf("%d\n",t[2][1]);则执行该程序段后输出结果是() A.8B.7C.4D.2
设执行以下程序段时依次输入2,4,6,执行结果为Dim a(4)As IntegerDim b(4)AS IntegerFor k=0 To 2a(k+1)=Val(InputBox("Enter data:"))b(3 - k) =a(k + 1)Next kPrint b(k)A.2B.4C.6D.0
6、程序段如下: int k=0; while(k<=2) k++; printf("%d\n",k); 则执行该程序段的输出结果是() 。A.4B.3C.2D.0