Khan.randRange(2, 10) Khan.randRange(2, 10)

Consider the following function:

int func (int x, int y) {
  if (y == 1)
    return x;
  else	 
    return x + func(x, y + 1);
}

What value does func(x , y) return?
(Either write a number, or write "infinite recursion".)

infinite recursion

The base case is executed when y reaches zero while the recursive call is incrementing y. Since y is positive, then the base case will never be executed.