Solved

Look at the Following Pseudocode Algorithm: Algorithm Gcd(x, Y)

Question 9

Multiple Choice

Look at the following pseudocode algorithm: Algorithm gcd(x, y)
If (x < y)
Gcd (y, x)
Else
If (y = 0)
Return x
Else
Return gcd(y, x mod y)
End gcd
What is returned from gcd(60, 24) ?


A) 60
B) 24
C) 12
D) 66

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions