Say 3 integers are giving: 3, 4, 16
how does one go about writing a program to find the least common denominator? greatest common divisor? etc..
I was wondering if there is a way to use the multiples and then select the number that matches up, in this case 48
I'm writing my program in processing...a java based language
for (int x = 4; x <= 60; x += 4) {
println(x);
}
for (int y = 3; y <= 60; y += 3) {
println(y);
}
for (int z = 16; z <= 60; z += 16) {
println(z);
}
now what to do?