Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

I trying to find least common multiple algorithm, and wikipedia told me to find GCD algorithm, can anyone told me LCM algorithm or GCD algorithm?

OpenStudy (anonymous):

well it's seems, GCD(a,b)=GCD(a,a mod b) using recrusive. I have find GCD

OpenStudy (anonymous):

now what's about three variable?

OpenStudy (anonymous):

find GCD with two variables and then do same thing with result and with third variable

OpenStudy (anonymous):

In C: gcd(a,b){ return a?b:gcd(b,a%b);} Call `gcd(a,gcd(b,c));` from main() or wherever

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!