Aplicacion MCD: Difference between revisions
Jump to navigation
Jump to search
DanielAjoy (talk | contribs) No edit summary |
DanielAjoy (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
Maximo Común Divisor de dos números, utilizando el algoritmo de Euclides. Por ejemplo, el MCD de 360 y 100 sale 20. |
Maximo Común Divisor de dos números, utilizando el algoritmo de Euclides. Por ejemplo, el MCD de 360 y 100 sale 20. |
||
[[Image:MaximoComunDivisorEnTortugArte.png|600px]] |
|||
sinpluma |
|||
fijar.xy 360 100 |
|||
pila1 |
|||
pila1 |
|||
si coory = 0 [ |
|||
mostrar coorx |
|||
detener.pila |
|||
] |
|||
fijar.xy coory ( coorx mod coory ) |
|||
pila1 |