[填空題] 當(dāng)下列程序運行,單擊窗體后,分別輸入72和24,信息框上顯示的結(jié)果是______。 Private Sub Form_Click( ) D
2021-07-20
[填空題] 當(dāng)下列程序運行,單擊窗體后,分別輸入72和24,信息框上顯示的結(jié)果是______。
Private Sub Form_Click( )
Dim x As Integer, y As Integer
x = Val(InputBox("輸入整數(shù)72"))
y = Val(InputBox("輸入整數(shù)24"))
z = fun1(x, y)
MsgBox Str(z)
End Sub
Private Function fun1(ByVal a As Integer, ByVal b As Integer)As Integer
Do
r = a Mod b
a = b
b = r
Loop Until r = 0
fun1 = a
End Function
正確答案:X
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。