Assume x >= y and y > 0 what does the following code do?

int F(int x, int y)

{

if (y == 0)

return x;

else

return F(y, x % y);

}

1

finds greatest common divisor

2

finds least common multiple

3

finds greater of x and y

4

finds smaller of x and y

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation