What output does the following program produce?
import java.util.Arrays;
public class Exercisell {
public static int guess(int[] c, int x) {
if (c.length==l) {
System, out .printf (“ z (%d) + %d\n”, c.length-1, c [0]) ;
return c[0];
}
else {
System.out.printf("z(%d) = %d * z(%d) + %d\n", c.length-1, x, c.length-2, c[0]);
return
x*guess(Arrays.copyOfRange(c, 1, c.length), x) + c[0];
} // end if
} // end guess
public static void main(String[] args) {
int[] x= {2, 4, 1};
System.out.println(guess(x, 5));
} // end main
} // end Exercisell
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.