Function FunBy Val xAs Ingeger,ByVal yAs Integer)As Integer Do While…Y<>0 reminder=x Mod Y x=y y=reminder Loop Fun=X End Function 以下是调用该函数的事件过程,该程序的运行结果是 Private SubCommand1_Click() Dim aAs Integer Dim bAs Integer a=100:b=25 x=Fun(a,b) Print x End Sub A.0 B.25 C.50 D.100