Header Ads

Learn Together, Stay Connected.

ল.সা.গু-C


#include <stdio.h>
int main()
{
int A,B,n,i;
scanf("%d%d",&A,&B);
if(A>B)
{
int t=A;
A=B;
B=t;
}
i=B;
while(1)
{
if(i%A==0 && i%B==0)
{
n=i;
printf("%d\n",n);
break;
}
i++;
}
return 0;
}

No comments

Theme images by Dizzo. Powered by Blogger.