Quiz 6

Heeey there!!!!! Here’s my 6th quiz. Yup. I know It’s pretty late for it. I will reflect that on my rubric.

Aaaanyway, the fact is that the instructions were these: “Write a function to calculate the greatest common denominator of two positive integers using Euclid’s algorithm.”

Here’s the page if you want to check what’s the Euclid’s algorithm about: https://www.khanacademy.org/computing/computer-science/cryptography/modarithmetic/a/the-euclidean-algorithm

quiz601

So, here’s my code. Do you see the red chart? Dont’t do something like that. Your code won’t work.

I visited Emanuel’s blog and it was really helpful. I was kind of lost with this code.

I’ll be submitting a flowchart to explain it better.

Here’s my code if you want to check it out. Have a nice day!!!

https://drive.google.com/open?id=0BxQYx0WBiNoRYjZCeDJQemdXZTA

:)

 

 

CC BY-SA 4.0 Quiz 6 by paogarcia2401 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.