Quiz 6

Hello this is the quiz number 6 that include an entertaining code that is about to create a Euclid’s algorithm and this are the instructions, this are the instructions.

  1. Write a function to calculate the greatest common denominator of two positive integers using Euclid’s algorithm.

The function should receive two integers and return an integer.Obviously you should test your function, so create a main program that asks the user for two values, calculates the gcd and displays that.

This page may help https://www.khanacademy.org/computing/computer-science/cryptography/modarithmetic/a/the-euclidean-algorithm

Quiz 6

Thanks see you soon!

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