Guest User

Untitled

a guest
Jun 9th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.26 KB | None | 0 0
  1. Func _BigNum_gcf($a, $b)
  2.     ;iterative (guessed)
  3.     Local $sub
  4.     If _BigNum_Compare($a,$b)<0 Then Return _BigNum_gcf($b,$a)
  5.  
  6.     While _BigNum_Compare($b,0)<>0;$b <> 0
  7.         Local $c=_BigNum_Mod($a,$b)
  8.         $a = $b
  9.         $b = $c
  10.     WEnd
  11.     Return $a
  12. EndFunc   ;==>_BigNum_gcf
Add Comment
Please, Sign In to add comment