Friday, 19 December 2014

Program for Lowest Common Multiple




CODE

int a, b, t;
a = input1;
b = input2;
while (b != 0)
{
t = b;
b = a % b;
a = t;
}

output1= (input1 * input2) / a;

No comments:

Post a Comment