Quote (Dairyfreeze @ Oct 21 2012 03:23pm)
cartblance, your solution is the one I was able to find online and seems the best, but my teacher wanted the euclidean method for whatever reason.
Kimano, thanks so much! I was just having difficulty seeing how it would loop, but I think I get it now.
The technique they showed is called recursion and it's handy.