home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-386-Vol-2of3.iso
/
b
/
baswiz19.zip
/
BW$BAS.ZIP
/
GCDL.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-29
|
766b
|
21 lines
' +----------------------------------------------------------------------+
' | |
' | BASWIZ Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' | The BASIC Wizard's Library |
' | |
' +----------------------------------------------------------------------+
DEFLNG A-Z
FUNCTION GCDL& (Nr1 AS LONG, Nr2 AS LONG)
N1 = Nr1
N2 = Nr2
DO
Remainder = N1 MOD N2
N1 = N2
N2 = Remainder
LOOP UNTIL Remainder = 0&
GCDL& = N1
END FUNCTION