Question: to write a function gcd that takes two positive integers as input, and returns the greatest common divisor. Note: you have to write this function
to write a function gcd that takes two positive integers as input, and returns the greatest common divisor. Note: you have to write this function with your own code and cannot use the gcd function from the math module. In pyhon programming please.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
