问题
单项选择题
单击命令按钮时,下列程序代码的执行结果为______ 。Public Function MyFune(m As Integer,n As Integer) As IntegerDo While m<>n Do While m>nm=m-n Loop Do While m<n n=n -m LoopLoopMyFunc=mEnd FunctionPrivate Sub Command1_Click() Print MyFunc(24, 18)End Sub
A.2
B.4
C.6
D.8
答案
参考答案:C