Answer to Question variable-3

  int m = Math.max(x,y);
  int x = m * m + 1;