#include
void get_lcm_gcd(int x, int y, int *p_lcm, int *p_gcd);
int main(void)
{
int x,y;
int a,b;
printf("Input the x :");
scanf("%d",&x);
printf("Input the y :");
scanf("%d",&y);
get_lcm_gcd(x,y,&a,&b);
printf("%d,%d",a,b);
return 0;
}
void get_lcm_gcd(int x, int y, int *p_lcm, int *p_gcd) \\최대공약수 최소공배수 함수 구하기
{
int r;
while(y!=0)
{
r = x%y;
x = y;
y = r;
}