运行下列程序,在立即窗口显示的结果是( )。PrivateSub Command0_Click( )Dim I AsInteger,J AsIntegerFor I=2To 10For J=2 To1If I modJ=0 Then Exit ForNext JIfJsqr(I)Then Debug.Print I;Next IEnd SubA.1579B.468C.3579D.2357
运行下列程序,在立即窗口显示的结果是( )。
PrivateSub Command0_Click( )
Dim I AsInteger,J AsInteger
For I=2To 10
For J=2 To1
If I modJ=0 Then Exit For
Next J
IfJ>sqr(I)Then Debug.Print I;
Next I
End Sub
A.1579
B.468
C.3579
D.2357
相关考题:
运行下列程序,在立即窗口显示的结果是( )。 PrivateSub Command0_Click( ) Dim I AsInteger,J AsInteger For I=2To 10 For J=2 To1 If I modJ=0 Then Exit For Next J IfJsqr(I)Then Debug.Print I; Next I End SubA.1579B.468C.3579D.2357
下面程序的运行结果是includemain(){char a[]="morning",t; int i,j=0; for(i=1;i 下面程序的运行结果是 #include<stdio.h> main() { char a[]="morning",t; int i,j=0; for(i=1;i<7;i++) if(a[j]<a[i])j=i; t=a[j]; a[j]=a[7]; a[7]=a[j]; puts[a];}A.mrgninrB.moC.moringD.morning
运行下列程序,在立即窗口显示的结果是Private Sub Command0_Click()Dim I As Integer,J As IntegerFor I=2 To 10For J=2 To I/2If I mod J=0 Then Exit ForNext JIf Jsqr(I) Then Debug.Print I;Next IEnd SubA.1 5 7 9B.4 6 8C.3 5 7 9D.2 3 5 7
在窗体上面1个名称为Command1的命令按钮,然后编写下列事件过程 Option Base 1 Private Sub,Command1 Click( ) Dim a(5,5)ks Integer For i=1 To j For j=1 To 5 a(i,j)=(i+j)*5\10 Next j Next i S=0 For i=1 To j s=s+a(i,i) Next i Print s End Sub 程序运行后,单击命令按钮,输出结果是( )。A.15B.13C.11D.9
以下程序运行后的输出结果是【】。include main(){int i=10,j=0;do{j=j+ i; i--;}while 以下程序运行后的输出结果是【 】。include <iostream.h>main(){int i=10,j=0;do{j=j+ i; i--;}while(i>2);cout<<j;}
有下列程序:#includestdi0.hvoidmain( ){inti,j;for(i=3;i=1;i--){for(j=1;j=2;j++)printf(”%d”,i+j);printf(\n);}}程序的运行结果是( )。A.234B.43234554334C.23D.4534342323
有下列程序: #includestdi0.h voidmain( ) {inti,j; for(i=3;i=1;i--) {for(j=1;j=2;j++)printf(”%d”,i+j); printf("\n"); } } 程序的运行结果是( )。A.234B.432 345543 34C.23D.45 3434 2323
运行下列程序:Private Sub Command1_Click( )Dim A(10) As IntegerFor i = 1 To 5A(i) = iA(i + 5) = iNext iFor i = 1 To 10s = s + A(i)Next iDebug.Print sEnd Sub单击按钮后,则在立即窗口内显示的结果是( )。A.5B.10C.30D.出错信息
试题35运行下列程序,在立即窗口显示的结果是()Private Sub Command0_Click()Dim I As Single , J As SingleFor I= 2 To 10For J = 2 To I/2If I mod J = 0 Then Exit ForNext JIf J sqr (I) Then Debug .Print I;Next IEnd SubA.1 5 7 9B.4 6 8C.3 5 7 9D.2 3 5 7