下列程序的运行机结果是【 】。Private Sub Form_ Click()Dim k As Integern= 5m= 1k= 1Dom=m+2k= k+1Loop While k<=nPrint mEnd Sub
下列程序的运行机结果是【 】。
Private Sub Form_ Click()
Dim k As Integer
n= 5
m= 1
k= 1
Do
m=m+2
k= k+1
Loop While k<=n
Print m
End Sub
相关考题:
下列程序的运行结果是( )。 PriVate Sub Form_CUCk() Dimk As Integ<er n=5 m=1 k=1 Do m=m+2 k=k+1 Loop Until k>n Printm End SubA.1B.12C.11D.32
阅读以下程序:Private Sub Form_click()Dim k, n, m As integern = 20m = 1k = 1Do While k <= nm=m+2k = k + 1LoopPrint mEnd Sub单击窗体程序的执行结果是【 】。
有以下程序main( ){ int a=1,b=2,m=0,n=0,k;k=(n=ba)||(m=aprintf("%d,%d\n",k,m);}程序运行后的输出结果是A.0,0B.0,1C.1,0D.1,1
下列程序的运行结果是 Private Sub Form_Click() Dim k As Integer n=5 m=1 k=1 Do m=m+2 k=k+1 Loop Until k>n Print m End SubA.1B.12C.11D.32
阅读以下程序:Prlvate Sub Form_Click()Dim k,n,m As Integern=10m=1k=1Do While k<=nm=m*2k=k+1LoopPrint mEnd Sub程序运行后,单击窗体,输出结果为【 】。
有以下程序:includemain(){int a=1,b=2,m=0,n=0,k; k=(n=b>a)||(m=a 有以下程序: #include <stdio.h> main() { int a=1,b=2,m=0,n=0,k; k=(n=b>a)||(m=a<b); printf("%d,%d\n",k,m); } 程序运行后的输出结果是( )。A.0,0B.0,1C.1,0D.1,1
有以下程序: main() { int a=1,b=2,m=0,n=0,k; k=(n=b>a)||(m=a>b); printf("%d,%d\n"m,k,m); } 程序运行后的输出结果是( )。A.0,0B.O,1C.1,0D.1,1
当发生Form_Click事件时,下列程序的输出结果是( )。 Private m As Integer,n As Integer Private Sub Form_Click() Dim k As Integer,p As Integer k=6:p=60 Call sub1(k,p) Print m,n,m,k,p Call sub1(k,p) Print m,n,k,p End Sub Private Sub Form_Load() m=7 n=70 End Sub Public Sub sub1(x As Integer,ByVal y As Integer) Dim m As Integer n=n+5 m=n+x+y x=x+y y=x+y End SubA.7 75 66 60 7 80 126 60B.7 75 66 60 7 75 126 60C.7 75 66 60 7 80 66 60D.7 75 66 60 7 75 66 60
当Form1_Click事件发生时,程序的输出结果是( )。 Private Sub Form_Click() Dim M As Integer,k As Integer,t As Integer M=5:k=7 Select Case M Case Is<0 M=M+5 Case 1 To 10 t=M:M=k:k=t Case Else M=k Mod 3 End Select Print M,k,t End SubA.5 5 7B.5 7 5C.7 5 5D.7 5 7