Answered step by step
Verified Expert Solution
Question
1 Approved Answer
. Is this a iteration or recursion method of finding gcd? Can you add in comments to the lines (labelled 1 to 2 and 3
.
Is this a iteration or recursion method of finding gcd?
Can you add in comments to the lines (labelled 1 to 2 and 3 to 9) so that i can understand what it is about?
1 def integerA(): 2 pass print( "Enter two numbers to find the GCD") a - int(input()) b - int(input()) 3 count0 4 while (not b) : If a > b: a -a b 7 else: 28 bb a count count 1 print (a)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started