input any two positive integers how to seek their Least Common Multiple and Greatest Common Divisor in c.
thank.
#include
void main(void)
{
int x,y;
printf("input any two positive integers:");
scanf("%d %d",&x,&y);
/*
...
*/
}

VulpesPosted Jul 22, 2013, 8:28 AM
Ken HPosted Jul 23, 2013, 3:27 AM
thank for your answer.
Regards,
Ken :)
Ken HPosted Jul 21, 2013, 9:10 PM
thank for answer.
If the number is three or more numbers, than if there is a better solution? :)
Sanjeeb LenkaPosted Jul 20, 2013, 11:47 PM