Function gcd(ByVal x As Integer, ByVal y As inteher) As Integer
Do While y <> 0
reminder = x Mod y
x = y
y = reminder
Loop
gcd = x
End Function
Private Sub Form_Click()
Dim a As Integer, b As Integer
a = 96: b = 64
x = gcd(a, b)
Print "GCD="; x
End Sub