题目内容:
单击命令按钮时,下列程序代码的执行结果为
Private Sub Command1_Click( )
Print MyFunc(24,18)
End Sub
Public Function MyFunc(m As Integer,n As Integer)As Integer
Do While m ◇ n
Do While m>n:m=m—n:Loop
DO While m<n:n=n-m:Loop
Loop
My Func=m
End Function
A.2
B.4
C.6
D.8
参考答案:
答案解析: