📄 module1.bas
字号:
Attribute VB_Name = "Module1"
'Function gcd(ByVal m As Integer, n As Integer) As Integer
' If (m Mod n) = 0 Then
' gcd = n
' Else
' gcd = gcd(n, m Mod n)
' End If
' Print
'End Function
Public Function gcd(ByVal m%, ByVal n%) As Integer
If m < n Then t = m: m = n: n = t
Do
r = m Mod n
If r = 0 Then Exit Do
m = n
n = r
Loop
gcd = n
End Function
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -