Question: Consider the algorithm: Algorithm Input: Two integers a and b . ( 1 ) if a < b then return a ( 2 ) return

Consider the algorithm:
Algorithm
Input: Two integers a and b.
(1) if a < b then return a
(2) return b
What does the algorithm return when the input is a =100 and b =44?
What does the algorithm return when the input is a =14 and b =78?
What does the algorithm return when the input is a =34 and b =35?
What does the algorithm return when the input is a =67 and b =11?
What does the algorithm return ?
A. The minimum of a and b
B. The greatest common divisor of a and b
C. The maximum of a and b
D. The sum of a and b
E. The absolute value of a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!