Page 1068 - AP Computer Science A, 7th edition
P. 1068

11. (A) The required code is for a negative expo. For example, power(2, –3) should return 2−3 = 1/8. Notice that
In general:
This is equivalent to (1 / base) ∗ power(base, expo + 1).
  































































































   1066   1067   1068   1069   1070