#include <stdio.h>
char *input_1 = "111"; // al posto di argv[1];
char *input_2 = "1234"; // al posto di argv[2];
#include <stdio.h>
int
mcd (int x, int y)
{
while (x != y)
{
if (x > y)
{
x = x - y;
}
else
{
y = y - x;
}
}
return x;
}
int
main (int argc, char *argv[])
{
int x;
int y;
int z;
z = mcd (x, y);
printf ("Il massimo comune divisore di %i e %i รจ %i\n", x, y, z);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpjaGFyICppbnB1dF8xID0gIjExMSI7ICAvLyBhbCBwb3N0byBkaSBhcmd2WzFdOwpjaGFyICppbnB1dF8yID0gIjEyMzQiOyAvLyBhbCBwb3N0byBkaSBhcmd2WzJdOwoKI2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQKbWNkIChpbnQgeCwgaW50IHkpCnsKICAgIHdoaWxlICh4ICE9IHkpCiAgICAgIHsKICAgICAgICBpZiAoeCA+IHkpCiAgICAgICAgICB7CiAgICAgICAgICAgIHggPSB4IC0geTsKICAgICAgICAgIH0KICAgICAgICBlbHNlCiAgICAgICAgICB7CiAgICAgICAgICAgIHkgPSB5IC0geDsKICAgICAgICAgIH0KICAgICAgfQoKICAgIHJldHVybiB4Owp9CgppbnQKbWFpbiAoaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewogICAgaW50IHg7CiAgICBpbnQgeTsKICAgIGludCB6OwoKICAgIHNzY2FuZiAoaW5wdXRfMSwgIiVpIiwgJngpOwogICAgc3NjYW5mIChpbnB1dF8yLCAiJWkiLCAmeSk7CgogICAgeiA9IG1jZCAoeCwgeSk7CgogICAgcHJpbnRmICgiSWwgbWFzc2ltbyBjb211bmUgZGl2aXNvcmUgZGkgJWkgZSAlaSDDqCAlaVxuIiwKICAgICAgICAgICAgeCwgeSwgeik7CgogICAgcmV0dXJuIDA7Cn0=