[填空題] 下列函數(shù)過(guò)程的作用是計(jì)算x和y的最大公約數(shù)。請(qǐng)?zhí)羁铡?Private Sub Command1_ Click() Dim x As Intege
2021-07-20
[填空題] 下列函數(shù)過(guò)程的作用是計(jì)算x和y的最大公約數(shù)。請(qǐng)?zhí)羁铡?Private Sub Command1_ Click() Dim x As Integer, y As Integer, Result As Integer x = InputBox (“請(qǐng)輸入第一個(gè)數(shù)”) y = InputBox (“請(qǐng)輸入第二個(gè)數(shù)”) Result =______Print x; "和"; y; "的最大公約數(shù)為: "; Result End Sub Private Function GYS (ByVal A As Integer, ByVal B As Integer) Dim T As Integer T = A Mod B Do While ______ A = B B = T T = A Mod B Loop ______ End Function
正確答案:GYS (x,y) T<>0 GYS=B
詞條內(nèi)容僅供參考,如果您需要解決具體問(wèn)題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢(xún)相關(guān)領(lǐng)域?qū)I(yè)人士。