单击命令按钮时,下列程序代码的运行结果为( )。
Private Sub Command1_Click( )
print MyFunc(20,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
MyFunc=m
End FunCtion
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 17:37:44
免费下载:《单选题》Word试卷
单击命令按钮时,下列程序代码的运行结果为( )。
Private Sub Command1_Click( )
print MyFunc(20,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
MyFunc=m
End FunCtion
B.2
C.4
D.6
本题关键词:行为结果,行为结果评价,出门按钮,控制按钮,代理行为,救助呼叫按钮,命令型,按钮联锁式装置,按钮式保护装置,按钮式防护装置;