3 function mcd( a, b: integer ): integer;
\r
15 if (a mod b) <> 0 then
\r
16 mcd := mcd( b, a mod b )
\r
25 arr = array[1..MAX] of integer;
\r
32 for i := 1 to MAX do
\r
34 write("Ingrese el ", i : 1, "ยง numero: ");
\r
37 for i := 1 to max - 1 do
\r
38 writeln("El MCD de ", numero[i] : 1, " y ", numero[i+1] : 1, " es ", mcd(numero[i], numero[i+1]) : 1);
\r