The great common divider can look like a difficult program, but something that help me a lot in this program was writing on a paper the solution, so i can visualize it better.
Take a look to my code at github:
https:/
GCD by diego plascencia is licensed under a Creative Commons Attribution 4.0 International License.