Greatest common divisor: Difference between revisions
Content added Content deleted
(Add 8086 assembly implementation, using AT & T syntax under linux) |
m (Moving 8086 Assembly to x86 Assembly) |
||
Line 1: | Line 1: | ||
{{task|Arithmetic operations}}[[Category:Recursion]] |
{{task|Arithmetic operations}}[[Category:Recursion]] |
||
This task requires the finding of the greatest common divisor of two integers. |
This task requires the finding of the greatest common divisor of two integers. |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|ActionScript}}== |
=={{header|ActionScript}}== |
||
<lang ActionScript>//Euclidean algorithm |
<lang ActionScript>//Euclidean algorithm |
||
Line 1,570: | Line 1,542: | ||
|1071 1029 gcd |
|1071 1029 gcd |
||
=21 |
=21 |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ |