Answered step by step
Verified Expert Solution
Link Copied!

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?

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago