[填空題] 下列程序的功能是計算兩個自然數(shù)的最大公約數(shù),如圖1所示。給定的程序不完整,將程序補充完整。 Private Sub Command1_Clic
2021-07-20
[填空題] 下列程序的功能是計算兩個自然數(shù)的最大公約數(shù),如圖1所示。給定的程序不完整,將程序補充完整。
Private Sub Command1_Click( )
Dim x As Long, y As Long, i As Long
x = Val(Text1.Text)
y = Val(Text2.Text)
Text3.Text = Str( (13) )
End Sub
Function fun1(a As Long, b As Long)As Long
Dim r As Long
Dim t As Long
If (14) Then
t = a
a = b
b = t
End If
r = a Mod b
Do While r <> 0
a = b
b = r
r = a Mod b
Loop
(15)
End Function
正確答案:fumA(x, y)
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學等領域),建議您咨詢相關領域專業(yè)人士。