Delphi calculates the greatest common divisor of two numbers by recursion

From , 4 Years ago, written in Delphi (Object Pascal), viewed 53 times.
URL https://pastebin.vip/view/dffbb6ef
  1. function GCD2(const A, B: Integer): Integer;
  2. begin
  3.   if B = 0 then
  4.     Result := Abs(A)
  5.   else
  6.     Result := GCD2(B, A mod B);
  7. end;

Reply to "Delphi calculates the greatest common divisor of two numbers by recursion"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website