### My issue

### My code

```
#include <stdio.h>
int main(void) {
int t,i,x,y,r1,r2,lcm,gcd,j;
scanf("%d",&t);
for (i=0;i<t;i++)
{ lcm=1;
scanf("%d %d",&x,&y);
if(x<y){
r1=x;
r2=y;}
else
{r1=y;
r2=x;}
for(j=1;j<r1+1;j++) //LCM
{
if(r1%j==0 && r2%j==0)
lcm=j;
}
gcd=(r1*r2)/lcm;
printf("%d %d\n",lcm,gcd);
}
return 0;
}
```

Problem Link: FLOW016 Problem - CodeChef