The Algorithm of the Quiz…6

Photograph credit

It is very late, but I didn’t want to go to sleep before finishing this so here it is 🙂. This quiz was very easy, all we had to do was follow the formula and use the arithmetic operator % to get the remainder of a division. Then we use recursion to make things a lot more easier. The program is 28 lines of code.

EuclidAlgorithm.cpp

And here is the tutorial, enjoy.

Made by Orlando Lara

CC BY-SA 4.0 The Algorithm of the Quiz…6 by Orlando Lara is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.