Greatest common divisor

Nov 19, 2014 at 10:27am
How do I get the greatest common divisor of two numbers in C++?
Please give me an explanation.

Thanks in advance
Last edited on Nov 19, 2014 at 10:28am
Nov 19, 2014 at 11:21am
There are several algorithms described here.
https://en.wikipedia.org/wiki/Greatest_common_divisor
Topic archived. No new replies allowed.