Question: def gcd ( a , b ) : while b ! = 0 : print ( Computing GCD of , a , and,
def gcda b:
while b :
printComputing GCD of a "and", b
a bb a b
return a
num intinputEnter the first number:
num intinputEnter the second number:
printThe GCD is gcdnum num
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
