main()
{int a,b,n1,n2,t;
scanf("%d%d",&n1,&n2);
if(n1<n2)
{t=n1;n1=n2;n2=t;
}
a=n1; b=n2;
while(b!=0)
{t=a%b;
a=b;
b=t; }
printf("a=%d\n",a);
printf("%d\n",n1*n2/a);
getch();
printf("************\n");
你想做什么啊??写出你的意图!
[此贴子已经被作者于2004-11-10 23:21:42编辑过]