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
if a b then return a
return b
What does the algorithm return when the input is a and b
What does the algorithm return when the input is a and b
What does the algorithm return when the input is a and b
What does the algorithm return when the input is a and b
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
