#Windows Batch, 76 bytes
Windows Batch, 76 bytes
Recursive function. Call it like GCD a b with file name gcd.
:g
if %2 equ 0 (set f=%1
goto d)
set/a r=%1 %% %2
call :g %2 %r%
:d
echo %f%
#Windows Batch, 76 bytes
Recursive function. Call it like GCD a b with file name gcd.
:g
if %2 equ 0 (set f=%1
goto d)
set/a r=%1 %% %2
call :g %2 %r%
:d
echo %f%
Windows Batch, 76 bytes
Recursive function. Call it like GCD a b with file name gcd.
:g
if %2 equ 0 (set f=%1
goto d)
set/a r=%1 %% %2
call :g %2 %r%
:d
echo %f%