下列程序的输出结果是【 】。Private Sub Command1_Click()Dim a(1 To 20)Dim iFor i=1 To 20a(i)=iNext iFor Each i In a()a(i)=20Next iPrint a(2)End Sub

下列程序的输出结果是【 】。

Private Sub Command1_Click()

Dim a(1 To 20)

Dim i

For i=1 To 20

a(i)=i

Next i

For Each i In a()

a(i)=20

Next i

Print a(2)

End Sub


相关考题:

下列程序的输出结果是【 】Private Sub Command1_Click()Dim a(1 To 20)Dim iFor i=l To 20a(i)=iNext iFor Each i In a()a (i) =20Next i

以下程序的输出结果是______。 main() { int i,k,a[10],p[3] k=5; for(i=0;i<10;i++)a[i]=i for(i=0;i<3;i++)p[i]=a[i*(i+1)]; for(i=0;i<3;i++)k+=p[i]*2; printf("%d\n",k); }A.20B.21C.22D.23

下列程序的输出结果是______。 includevoid main( ){ char a[]="abcdabcabfgacd"; in 下列程序的输出结果是______。include<iostream.h>void main( ){char a[]="abcdabcabfgacd";int i1=0,i2=0,i=0;while(a[i]){if(a[i]=="a")i1++;if(a[i]=="b")i2++;i++;}cout<<i1<<""<<i2<<endl;}

下列程序的输出结果是【 】。Private Sub Command l Click()Dim a(1 TO 20)Dim iFor i=1 TO 20a(i)=iNext iFor Each i In a()a(i)=20Next iPrint a(2) End Sub

下列程序的输出结果是()。include main() {int i;for(i=1;i=20) for(i=1;i<=10;i++) { if((i*i>=20)(i*i<=100)) break; } printf("%d\n",i*i); }A.49B.36C.25D.64

下列程序的输出结果是()。include main() {int i;for(i=1 ;i=20) for(i=1 ;i<=10; i++) { if((i*i>=20)(i*i<=100)) } break; printf("%d\n",i*i); }A.49B.36C.25D.64

下列程序的输出结果是______。 main() { int i,k,a[10],p[3]; k=5; for (i=0;i<10;i++) a[i]=i for (i=0;i<3;i++) p[i]=a[i*(i+1)]; for (i=0;i<3;i++)k+=p[i]*2; printf("%d\n",k); }A.20B.21C.22D.23

下列程序的输出结果是()。 include main() { int i; for(i=1;i=20) 下列程序的输出结果是( )。#include<stdio.h>main(){ int i;for(i=1;i<=10;i++){ if((i*i>=20) (i*i<=100) )break;}printf("%d\n",i*i);}A.49B.36C.25D.64

以下程序的输出结果是( )。includemain()int i=0,a=0;while(i 以下程序的输出结果是( )。#includemain()int i=0,a=0;while(ifor(;;)if((i%10)==0)break;else i--;i+=11;a+=I;printf("%d\n",a);A.21B.32C.33D.11