#include <stdio.h>
int main(void) {
int a,b,d;
int c=2;
printf("1つ目の正の整数を入力してください:%d\n",a
); if(a<=0)
else
printf("2つ目の正の整数を入力してください:%d\n",b
);
if(b<=0)
else
do
{
d=a*c;
c=c+1;
}
while(d%b!=0);
printf("\n%dと%dの最小公倍数は%dです。\n",a
,b
,d
); // your code goes here
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgYSxiLGQ7CglpbnQgYz0yOwoJc2NhbmYoIiVkIiwmYSk7CglwcmludGYoIjHjgaTnm67jga7mraPjga7mlbTmlbDjgpLlhaXlipvjgZfjgabjgY/jgaDjgZXjgYQ6JWRcbiIsYSk7CglpZihhPD0wKQoJCXByaW50Zigi5q2j44Gn44Gv44GC44KK44G+44Gb44KT44CCXG4iKTsKCWVsc2UJCQkJCQkJCQkJCQkJCQkJCQkJCQkKCQlzY2FuZigiJWQiLCZiKTsKCQlwcmludGYoIjLjgaTnm67jga7mraPjga7mlbTmlbDjgpLlhaXlipvjgZfjgabjgY/jgaDjgZXjgYQ6JWRcbiIsYik7CgoJCWlmKGI8PTApCgkJCXByaW50Zigi5q2j44Gn44Gv44GC44KK44G+44Gb44KT44CCXG4iKTsKCQllbHNlCgkJCWRvCgkJCXsKCQkJCWQ9YSpjOwoJCQkJYz1jKzE7CgoJCQl9CgkJCXdoaWxlKGQlYiE9MCk7CgkJCXByaW50ZigiXG4lZOOBqCVk44Gu5pyA5bCP5YWs5YCN5pWw44GvJWTjgafjgZnjgIJcbiIsYSxiLGQpOwoJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJcmV0dXJuIDA7Cn0K