#include <stdio.h>
#include <math.h>
main()
{
int a,b,num1,num2,temp;
printf(“please input two numbers”);
scanf("%d,%d",&num1,&num2); //加, 不注意易出现错误输入,输入,必须是英文
if (num1<num2)
{
temp=num1;
num1=num2;
num2=temp;
}
a=num1;
b=num2;
while(b!=0)
{
temp = a%b;
a=b;
b=temp;
}
printf("gongyue is %d\n",a);
printf("gongbi is %d",num1*num2/a);
}