#include<stdio.h>
void main()
{
int p, r, n, m, temp;
printf("请输入两个正整数:");
scanf("%d,%d", &n, &m);
if (n < m)
{
temp = n;
n = m;
m = temp;
}
p = n*m;
while (m != 0)
{
r = n%m;
n = m;
m = r;
}
printf("他们的最大公约数为:%d\n",n);
printf("他们的最小公倍数为:%d\n", n);
}