输入3个数,求它们的最小公倍数,不知道错在哪
#include<stdio.h>void main()
{ int x,y,z,j;
int t,m,n;
scanf("%d,%d,%d ",&x,&y,&z);
j=1;
t=m=n=1;
/********found********/
while(t!=0&&m!=0&&n!=0)
{j=j+1;
t=j%x;
m=j%y;
n=j%z;
}
printf("The minimal common multiple is %d\n",j);
/********found********/
}